aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha/AlphaISelLowering.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-09-29 22:54:56 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-09-29 22:54:56 +0000
commit120ab480ab87e449f152e4b36823c13a80c9022a (patch)
tree1b73b607afd3a80416cbf494613eb9ce3112010c /lib/Target/Alpha/AlphaISelLowering.cpp
parentc7a37a52cd05c27aa0ddf743bfaf02cee4a2580e (diff)
downloadexternal_llvm-120ab480ab87e449f152e4b36823c13a80c9022a.zip
external_llvm-120ab480ab87e449f152e4b36823c13a80c9022a.tar.gz
external_llvm-120ab480ab87e449f152e4b36823c13a80c9022a.tar.bz2
begining alpha subtarget support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelLowering.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp
index 2e5a832..c6cfc4b 100644
--- a/lib/Target/Alpha/AlphaISelLowering.cpp
+++ b/lib/Target/Alpha/AlphaISelLowering.cpp
@@ -27,8 +27,6 @@ using namespace llvm;
namespace llvm {
extern cl::opt<bool> EnableAlphaIDIV;
- extern cl::opt<bool> EnableAlphaFTOI;
- extern cl::opt<bool> EnableAlphaCT;
extern cl::opt<bool> EnableAlphaCount;
extern cl::opt<bool> EnableAlphaLSMark;
}
@@ -73,7 +71,7 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM)
setOperationAction(ISD::UINT_TO_FP, MVT::i64, Expand);
- if (!EnableAlphaCT) {
+ if (!TM.getSubtarget<AlphaSubtarget>().hasCT()) {
setOperationAction(ISD::CTPOP , MVT::i64 , Expand);
setOperationAction(ISD::CTTZ , MVT::i64 , Expand);
setOperationAction(ISD::CTLZ , MVT::i64 , Expand);