summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorMichael Berg <michael_c_berg@apple.com>2019-02-06 19:57:06 +0000
committerMichael Berg <michael_c_berg@apple.com>2019-02-06 19:57:06 +0000
commitf0d81a31b628007e88973e6cf85a910040a30e20 (patch)
tree3f77c138d005d69b44af0ac542942490db47ae2a /llvm/include
parent910c6bef3e69fe1754947fb7860f5f34fd4acf09 (diff)
downloadbcm5719-llvm-f0d81a31b628007e88973e6cf85a910040a30e20.tar.gz
bcm5719-llvm-f0d81a31b628007e88973e6cf85a910040a30e20.zip
Move IR flag handling directly into builder calls for cases translated from Instructions in GlobalIsel
Reviewers: aditya_nandakumar, volkan Reviewed By: aditya_nandakumar Subscribers: rovka, kristof.beyls, volkan, Petar.Avramovic Differential Revision: https://reviews.llvm.org/D57630 llvm-svn: 353336
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index faeb66ea227..5267b9db21a 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -1538,6 +1538,8 @@ public:
/// not modify the MIFlags of this MachineInstr.
uint16_t mergeFlagsWith(const MachineInstr& Other) const;
+ static uint16_t copyFlagsFromInstruction(const Instruction &I);
+
/// Copy all flags to MachineInst MIFlags
void copyIRFlags(const Instruction &I);
OpenPOWER on IntegriCloud