X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FInstruction.h;h=595ad179e08cb07783b22aa899a35be9a54ba679;hb=70fe6ecb6d0c3b556f2c4e3c1e5013da821beded;hp=2c1d41c705b92b1a100f2b030353e47800a93c16;hpb=9b7f6f2de89a321f7eae5e942c8668cb50acfd1d;p=oota-llvm.git diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 2c1d41c705b..595ad179e08 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -15,13 +15,13 @@ #ifndef LLVM_INSTRUCTION_H #define LLVM_INSTRUCTION_H -#include "llvm/User.h" #include "llvm/ADT/ilist_node.h" #include "llvm/Support/DebugLoc.h" +#include "llvm/User.h" namespace llvm { -struct FastMathFlags; +class FastMathFlags; class LLVMContext; class MDNode; @@ -227,6 +227,9 @@ public: /// these flats. FastMathFlags getFastMathFlags() const; + /// Copy I's fast-math flags + void copyFastMathFlags(const Instruction *I); + private: /// hasMetadataHashEntry - Return true if we have an entry in the on-the-side /// metadata hash.