aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetMachine.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-03-13 22:26:59 +0000
committerBill Wendling <isanbard@gmail.com>2013-03-13 22:26:59 +0000
commit4cb1f5f4064f2eec1420dc30bf32ac54bd40e222 (patch)
tree375f06d186835d6e1fc68795ba4834c5ae50dd3d /include/llvm/Target/TargetMachine.h
parent33905b2a34da69bc05d67567fe1c1b6e74d32fa0 (diff)
downloadexternal_llvm-4cb1f5f4064f2eec1420dc30bf32ac54bd40e222.zip
external_llvm-4cb1f5f4064f2eec1420dc30bf32ac54bd40e222.tar.gz
external_llvm-4cb1f5f4064f2eec1420dc30bf32ac54bd40e222.tar.bz2
Reset some of the target options which affect code generation.
This doesn't reset all of the target options within the TargetOptions object. This is because some of those are ABI-specific and must be determined if it's okay to change those on the fly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
-rw-r--r--include/llvm/Target/TargetMachine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index 35cf20a..66f3a3c 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -95,7 +95,10 @@ public:
/// a reference to that target's TargetSubtargetInfo-derived member variable.
virtual const TargetSubtargetInfo *getSubtargetImpl() const { return 0; }
- TargetOptions Options;
+ mutable TargetOptions Options;
+
+ /// \brief Reset the target options based on the function's attributes.
+ void resetTargetOptions(const MachineFunction *MF) const;
// Interfaces to the major aspects of target machine information:
// -- Instruction opcode and operand information