summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPC.h
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2017-03-28 22:55:01 +0000
committerGuozhi Wei <carrot@google.com>2017-03-28 22:55:01 +0000
commitf8d40181c9b8ef68d975ba04dfd025cb74042e88 (patch)
tree279ea9dabb24543f27453004f98e3a0f5991bb97 /llvm/lib/Target/PowerPC/PPC.h
parenta41a5c29f00b9fa6120f1da2f51b0c90b26e2fbf (diff)
downloadbcm5719-llvm-f8d40181c9b8ef68d975ba04dfd025cb74042e88.tar.gz
bcm5719-llvm-f8d40181c9b8ef68d975ba04dfd025cb74042e88.zip
[PPC] In PPCBoolRetToInt change the bool value to i64 if the target is ppc64
In PPCBoolRetToInt bool value is changed to i32 type. On ppc64 it may introduce an extra zero extension for the return value. This patch changes the integer type to i64 to avoid the zero extension on ppc64. This patch fixed PR32442. Differential Revision: https://reviews.llvm.org/D31407 llvm-svn: 298955
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPC.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC.h b/llvm/lib/Target/PowerPC/PPC.h
index 38ae62b2675..23077637388 100644
--- a/llvm/lib/Target/PowerPC/PPC.h
+++ b/llvm/lib/Target/PowerPC/PPC.h
@@ -44,7 +44,7 @@ namespace llvm {
FunctionPass *createPPCQPXLoadSplatPass();
FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
FunctionPass *createPPCTLSDynamicCallPass();
- FunctionPass *createPPCBoolRetToIntPass();
+ FunctionPass *createPPCBoolRetToIntPass(PPCTargetMachine *TM);
FunctionPass *createPPCExpandISELPass();
void LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
AsmPrinter &AP, bool isDarwin);
OpenPOWER on IntegriCloud