begining alpha subtarget support

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth
2005-09-29 22:54:56 +00:00
parent c7a37a52cd
commit 120ab480ab
7 changed files with 86 additions and 19 deletions

View File

@@ -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);