diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-12-21 02:34:39 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-12-21 02:34:39 +0000 |
| commit | 747d1114d6fab9b807764b790e51482fa8326ea0 (patch) | |
| tree | 1fa6ba900d84c302b575e56041314a405659aad0 /llvm/lib/Target/AMDGPU | |
| parent | b6a429842ec31acddbc64937a8b7047c4eee025e (diff) | |
| download | bcm5719-llvm-747d1114d6fab9b807764b790e51482fa8326ea0.tar.gz bcm5719-llvm-747d1114d6fab9b807764b790e51482fa8326ea0.zip | |
Revert "Expose a TargetMachine::getTargetTransformInfo function"
This reverts commit r321234. It breaks the -DBUILD_SHARED_LIBS=ON build.
llvm-svn: 321243
Diffstat (limited to 'llvm/lib/Target/AMDGPU')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | 8 | ||||
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp index 2042dbf6d5e..6984f4e7161 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp @@ -571,9 +571,10 @@ public: } // end anonymous namespace -TargetTransformInfo -AMDGPUTargetMachine::getTargetTransformInfo(const Function &F) { - return TargetTransformInfo(AMDGPUTTIImpl(this, F)); +TargetIRAnalysis AMDGPUTargetMachine::getTargetIRAnalysis() { + return TargetIRAnalysis([this](const Function &F) { + return TargetTransformInfo(AMDGPUTTIImpl(this, F)); + }); } void AMDGPUPassConfig::addEarlyCSEOrGVNPass() { @@ -897,3 +898,4 @@ void GCNPassConfig::addPreEmitPass() { TargetPassConfig *GCNTargetMachine::createPassConfig(PassManagerBase &PM) { return new GCNPassConfig(*this, PM); } + diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h index 5f9b2a7fca2..5043e31f6f5 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h @@ -55,7 +55,7 @@ public: const AMDGPUIntrinsicInfo *getIntrinsicInfo() const override { return &IntrinsicInfo; } - TargetTransformInfo getTargetTransformInfo(const Function &F) override; + TargetIRAnalysis getTargetIRAnalysis() override; TargetLoweringObjectFile *getObjFileLowering() const override { return TLOF.get(); |

