mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 05:13:01 +00:00
PTX: Fix a couple of lint violations
llvm-svn: 126936
This commit is contained in:
parent
df829ddcb7
commit
86e749c620
@ -170,7 +170,8 @@ void PTXAsmPrinter::EmitStartOfAsmFile(Module &M)
|
||||
|
||||
OutStreamer.EmitRawText(Twine("\t.version " + ST.getPTXVersionString()));
|
||||
OutStreamer.EmitRawText(Twine("\t.target " + ST.getTargetString() +
|
||||
(ST.supportsDouble() ? "" : ", map_f64_to_f32")));
|
||||
(ST.supportsDouble() ? ""
|
||||
: ", map_f64_to_f32")));
|
||||
OutStreamer.AddBlankLine();
|
||||
|
||||
// declare global variables
|
||||
|
@ -27,7 +27,8 @@ protected:
|
||||
|
||||
public:
|
||||
explicit PTXFrameLowering(const PTXSubtarget &sti)
|
||||
: TargetFrameLowering(TargetFrameLowering::StackGrowsDown, 2, -2), STI(sti) {
|
||||
: TargetFrameLowering(TargetFrameLowering::StackGrowsDown, 2, -2),
|
||||
STI(sti) {
|
||||
}
|
||||
|
||||
/// emitProlog/emitEpilog - These methods insert prolog and epilog code into
|
||||
|
@ -42,7 +42,8 @@ void PTXInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
|
||||
for (int i = 0, e = sizeof(map)/sizeof(map[0]); i != e; ++ i) {
|
||||
if (map[i].cls->contains(DstReg, SrcReg)) {
|
||||
BuildMI(MBB, I, DL,
|
||||
get(map[i].opcode), DstReg).addReg(SrcReg, getKillRegState(KillSrc));
|
||||
get(map[i].opcode), DstReg).addReg(SrcReg,
|
||||
Getkillregstate(KillSrc));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -423,7 +423,8 @@ void PTXMCAsmStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue,
|
||||
MCStreamer::EmitFill(NumBytes, FillValue, AddrSpace);
|
||||
}
|
||||
|
||||
void PTXMCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
|
||||
void PTXMCAsmStreamer::EmitValueToAlignment(unsigned ByteAlignment,
|
||||
int64_t Value,
|
||||
unsigned ValueSize,
|
||||
unsigned MaxBytesToEmit) {
|
||||
// Some assemblers don't support non-power of two alignments, so we always
|
||||
|
Loading…
Reference in New Issue
Block a user