diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-12-18 02:48:48 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-12-18 02:48:48 +0000 |
commit | 53c1f7509078a0b1a2c88dd8aaeb189fc2df88d1 (patch) | |
tree | ec8d912ee408a4c90e8131f74dbe587c21577a23 /llvm/lib | |
parent | 5580e69df65adac9eea1e468476d508be5398052 (diff) | |
download | bcm5719-llvm-53c1f7509078a0b1a2c88dd8aaeb189fc2df88d1.tar.gz bcm5719-llvm-53c1f7509078a0b1a2c88dd8aaeb189fc2df88d1.zip |
Since extload can also be used by FP, split STDIntExtLoad into two parts,
one for use with extload, one for use with sextload and zextload, which
are integer only.
llvm-svn: 24814
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/TargetSelectionDAG.td | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetSelectionDAG.td b/llvm/lib/Target/TargetSelectionDAG.td index 953a0874e8f..78640da4b9e 100644 --- a/llvm/lib/Target/TargetSelectionDAG.td +++ b/llvm/lib/Target/TargetSelectionDAG.td @@ -149,7 +149,10 @@ def SDTStore : SDTypeProfile<0, 2, [ // store SDTCisPtrTy<1> ]>; -def SDTIntExtLoad : SDTypeProfile<1, 3, [ // sextload, zextload, extload +def SDTExtLoad : SDTypeProfile<1, 3, [ // extload + SDTCisPtrTy<1>, SDTCisVT<2, OtherVT>, SDTCisVT<3, OtherVT> +]>; +def SDTIntExtLoad : SDTypeProfile<1, 3, [ // sextload, zextload SDTCisInt<0>, SDTCisPtrTy<1>, SDTCisVT<2, OtherVT>, SDTCisVT<3, OtherVT> ]>; def SDTTruncStore : SDTypeProfile<0, 4, [ // truncstore @@ -263,7 +266,7 @@ def store : SDNode<"ISD::STORE" , SDTStore, [SDNPHasChain]>; // below) which pass in a dummy srcvalue node which tblgen will skip over. def sextld : SDNode<"ISD::SEXTLOAD" , SDTIntExtLoad, [SDNPHasChain]>; def zextld : SDNode<"ISD::ZEXTLOAD" , SDTIntExtLoad, [SDNPHasChain]>; -def extld : SDNode<"ISD::EXTLOAD" , SDTIntExtLoad, [SDNPHasChain]>; +def extld : SDNode<"ISD::EXTLOAD" , SDTExtLoad, [SDNPHasChain]>; def truncst : SDNode<"ISD::TRUNCSTORE" , SDTTruncStore, [SDNPHasChain]>; //===----------------------------------------------------------------------===// |