summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetMachine.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-10-06 06:45:36 +0000
committerEric Christopher <echristo@gmail.com>2014-10-06 06:45:36 +0000
commit3faf2f1e02eff60a3a75cd5da8d113d38bf26b46 (patch)
tree07131e9dc5225b502c74cfea586b2b74513d942e /llvm/lib/Target/PowerPC/PPCTargetMachine.h
parent28a3fc6c3e0578b78b23dfddd7dca5415749b87c (diff)
downloadbcm5719-llvm-3faf2f1e02eff60a3a75cd5da8d113d38bf26b46.tar.gz
bcm5719-llvm-3faf2f1e02eff60a3a75cd5da8d113d38bf26b46.zip
Add subtarget caches to aarch64, arm, ppc, and x86.
These will make it easier to test further changes to the code generation and optimization pipelines as those are moved to subtargets initialized with target feature and target cpu. llvm-svn: 219106
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.h b/llvm/lib/Target/PowerPC/PPCTargetMachine.h
index ea7f27ae18a..35e2518462b 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.h
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.h
@@ -24,7 +24,9 @@ namespace llvm {
/// PPCTargetMachine - Common code between 32-bit and 64-bit PowerPC targets.
///
class PPCTargetMachine : public LLVMTargetMachine {
- PPCSubtarget Subtarget;
+ PPCSubtarget Subtarget;
+
+ mutable StringMap<std::unique_ptr<PPCSubtarget>> SubtargetMap;
public:
PPCTargetMachine(const Target &T, StringRef TT,
@@ -33,6 +35,7 @@ public:
CodeGenOpt::Level OL);
const PPCSubtarget *getSubtargetImpl() const override { return &Subtarget; }
+ const PPCSubtarget *getSubtargetImpl(const Function &F) const override;
// Pass Pipeline Configuration
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
OpenPOWER on IntegriCloud