diff options
author | Tom Stellard <[email protected]> | 2012-05-27 22:11:53 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-29 11:55:52 -0400 |
commit | 49fb99bd131a4ed89e6f55cf360f67618acafec4 (patch) | |
tree | f315d09eb2d42b2f5bd7bfc1021ebdf249f7a807 /src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp | |
parent | 94a25b216bb7bf1f55e657d93d84f6de3f5e7ed4 (diff) |
radeon/llvm: Remove AMDILTargetMachine
Diffstat (limited to 'src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp b/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp index 75729ac01a3..566a91e48f3 100644 --- a/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp +++ b/src/gallium/drivers/radeon/AMDILIntrinsicInfo.cpp @@ -13,7 +13,7 @@ #include "AMDILIntrinsicInfo.h" #include "AMDIL.h" -#include "AMDILTargetMachine.h" +#include "AMDILSubtarget.h" #include "llvm/DerivedTypes.h" #include "llvm/Intrinsics.h" #include "llvm/Module.h" @@ -24,7 +24,7 @@ using namespace llvm; #include "AMDILGenIntrinsics.inc" #undef GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN -AMDILIntrinsicInfo::AMDILIntrinsicInfo(AMDILTargetMachine *tm) +AMDILIntrinsicInfo::AMDILIntrinsicInfo(TargetMachine *tm) : TargetIntrinsicInfo(), mTM(tm) { } @@ -176,7 +176,7 @@ AMDILIntrinsicInfo::getDeclaration(Module *M, unsigned IntrID, bool AMDILIntrinsicInfo::isValidIntrinsic(unsigned int IntrID) const { - const AMDILSubtarget *stm = mTM->getSubtargetImpl(); + const AMDILSubtarget &STM = mTM->getSubtarget<AMDILSubtarget>(); switch (IntrID) { default: return true; @@ -185,6 +185,6 @@ AMDILIntrinsicInfo::isValidIntrinsic(unsigned int IntrID) const case AMDGPUIntrinsic::AMDIL_convert_f32_f16_near: case AMDGPUIntrinsic::AMDIL_convert_f32_f16_neg_inf: case AMDGPUIntrinsic::AMDIL_convert_f32_f16_plus_inf: - return stm->calVersion() >= CAL_VERSION_SC_139; + return STM.calVersion() >= CAL_VERSION_SC_139; }; } |