From: Tom Stellard Date: Thu, 14 Apr 2016 17:23:33 +0000 (+0000) Subject: [GlobalISel] Coding style and whitespace fixes X-Git-Tag: llvmorg-3.9.0-rc1~9081 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b72a65ff535673b5c7ef89372d6a0fdc70dd38c6;p=platform%2Fupstream%2Fllvm.git [GlobalISel] Coding style and whitespace fixes Reviewers: qcolombet Subscribers: joker.eph, llvm-commits, vkalintiris Differential Revision: http://reviews.llvm.org/D19119 llvm-svn: 266342 --- diff --git a/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h b/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h index 117c81c..bbd0b6d 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h @@ -40,13 +40,13 @@ class CallLowering { public: CallLowering(const TargetLowering *TLI) : TLI(TLI) {} virtual ~CallLowering() {} - + /// This hook must be implemented to lower outgoing return values, described /// by \p Val, into the specified virtual register \p VReg. /// This hook is used by GlobalISel. /// /// \return True if the lowering succeeds, false otherwise. - virtual bool LowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val, + virtual bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val, unsigned VReg) const { return false; } @@ -61,7 +61,7 @@ class CallLowering { /// /// \return True if the lowering succeeded, false otherwise. virtual bool - LowerFormalArguments(MachineIRBuilder &MIRBuilder, + lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function::ArgumentListType &Args, const SmallVectorImpl &VRegs) const { return false; diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index 6fd179f..98af760 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -79,7 +79,7 @@ bool IRTranslator::translateReturn(const Instruction &Inst) { // The target may mess up with the insertion point, but // this is not important as a return is the last instruction // of the block anyway. - return CLI->LowerReturn(MIRBuilder, Ret, !Ret ? 0 : getOrCreateVReg(*Ret)); + return CLI->lowerReturn(MIRBuilder, Ret, !Ret ? 0 : getOrCreateVReg(*Ret)); } bool IRTranslator::translateBr(const Instruction &Inst) { @@ -136,7 +136,7 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &MF) { for (const Argument &Arg: F.args()) VRegArgs.push_back(getOrCreateVReg(Arg)); bool Succeeded = - CLI->LowerFormalArguments(MIRBuilder, F.getArgumentList(), VRegArgs); + CLI->lowerFormalArguments(MIRBuilder, F.getArgumentList(), VRegArgs); if (!Succeeded) report_fatal_error("Unable to lower arguments"); diff --git a/llvm/lib/Target/AArch64/AArch64CallLowering.cpp b/llvm/lib/Target/AArch64/AArch64CallLowering.cpp index 0c893e2..e3522e6 100644 --- a/llvm/lib/Target/AArch64/AArch64CallLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64CallLowering.cpp @@ -29,7 +29,7 @@ AArch64CallLowering::AArch64CallLowering(const AArch64TargetLowering &TLI) : CallLowering(&TLI) { } -bool AArch64CallLowering::LowerReturn(MachineIRBuilder &MIRBuilder, +bool AArch64CallLowering::lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val, unsigned VReg) const { MachineInstr *Return = MIRBuilder.buildInstr(AArch64::RET_ReallyLR); assert(Return && "Unable to build a return instruction?!"); @@ -53,7 +53,7 @@ bool AArch64CallLowering::LowerReturn(MachineIRBuilder &MIRBuilder, return true; } -bool AArch64CallLowering::LowerFormalArguments( +bool AArch64CallLowering::lowerFormalArguments( MachineIRBuilder &MIRBuilder, const Function::ArgumentListType &Args, const SmallVectorImpl &VRegs) const { MachineFunction &MF = MIRBuilder.getMF(); diff --git a/llvm/lib/Target/AArch64/AArch64CallLowering.h b/llvm/lib/Target/AArch64/AArch64CallLowering.h index 449a237..4116228 100644 --- a/llvm/lib/Target/AArch64/AArch64CallLowering.h +++ b/llvm/lib/Target/AArch64/AArch64CallLowering.h @@ -20,15 +20,15 @@ namespace llvm { class AArch64TargetLowering; - + class AArch64CallLowering: public CallLowering { public: AArch64CallLowering(const AArch64TargetLowering &TLI); - - bool LowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val, + + bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val, unsigned VReg) const override; bool - LowerFormalArguments(MachineIRBuilder &MIRBuilder, + lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function::ArgumentListType &Args, const SmallVectorImpl &VRegs) const override; };