summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-08-11 17:36:31 +0000
committerNate Begeman <natebegeman@mac.com>2008-08-11 17:36:31 +0000
commitf69d13b60af2a8b43acf453fa0f9dcc8e01b3203 (patch)
treef0f1a666fbbc1da9156421fbe39d84a44bc06c18 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parentfb3043d62708f182b7387924456c2282d374a9ef (diff)
downloadbcm5719-llvm-f69d13b60af2a8b43acf453fa0f9dcc8e01b3203.tar.gz
bcm5719-llvm-f69d13b60af2a8b43acf453fa0f9dcc8e01b3203.zip
Implement ISD::TRAP support on PPC
llvm-svn: 54644
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index fcf235ccd11..2dec8d61b5b 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -183,9 +183,12 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM)
setOperationAction(ISD::ConstantPool, MVT::i64, Custom);
setOperationAction(ISD::JumpTable, MVT::i64, Custom);
- // RET must be custom lowered, to meet ABI requirements
+ // RET must be custom lowered, to meet ABI requirements.
setOperationAction(ISD::RET , MVT::Other, Custom);
+ // TRAP is legal.
+ setOperationAction(ISD::TRAP, MVT::Other, Legal);
+
// VASTART needs to be custom lowered to use the VarArgsFrameIndex
setOperationAction(ISD::VASTART , MVT::Other, Custom);
OpenPOWER on IntegriCloud