[PATCH] D19119: [GlobalISel] Coding style and whitespace fixes
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 08:42:52 PDT 2016
tstellarAMD created this revision.
tstellarAMD added a reviewer: qcolombet.
tstellarAMD added a subscriber: llvm-commits.
Herald added subscribers: vkalintiris, joker.eph.
http://reviews.llvm.org/D19119
Files:
include/llvm/CodeGen/GlobalISel/CallLowering.h
lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/Target/AArch64/AArch64CallLowering.cpp
lib/Target/AArch64/AArch64CallLowering.h
Index: lib/Target/AArch64/AArch64CallLowering.h
===================================================================
--- lib/Target/AArch64/AArch64CallLowering.h
+++ 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<unsigned> &VRegs) const override;
};
Index: lib/Target/AArch64/AArch64CallLowering.cpp
===================================================================
--- lib/Target/AArch64/AArch64CallLowering.cpp
+++ lib/Target/AArch64/AArch64CallLowering.cpp
@@ -29,7 +29,7 @@
: 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 @@
return true;
}
-bool AArch64CallLowering::LowerFormalArguments(
+bool AArch64CallLowering::lowerFormalArguments(
MachineIRBuilder &MIRBuilder, const Function::ArgumentListType &Args,
const SmallVectorImpl<unsigned> &VRegs) const {
MachineFunction &MF = MIRBuilder.getMF();
Index: lib/CodeGen/GlobalISel/IRTranslator.cpp
===================================================================
--- lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -79,7 +79,7 @@
// 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 @@
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");
Index: include/llvm/CodeGen/GlobalISel/CallLowering.h
===================================================================
--- include/llvm/CodeGen/GlobalISel/CallLowering.h
+++ include/llvm/CodeGen/GlobalISel/CallLowering.h
@@ -40,13 +40,13 @@
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 @@
///
/// \return True if the lowering succeeded, false otherwise.
virtual bool
- LowerFormalArguments(MachineIRBuilder &MIRBuilder,
+ lowerFormalArguments(MachineIRBuilder &MIRBuilder,
const Function::ArgumentListType &Args,
const SmallVectorImpl<unsigned> &VRegs) const {
return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19119.53734.patch
Type: text/x-patch
Size: 3924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160414/f46f5baa/attachment.bin>
More information about the llvm-commits
mailing list