Skip to content

Commit 9b0e427

Browse files
committed
formatting
1 parent 0eac5e9 commit 9b0e427

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

llvm/lib/Target/NVPTX/NVPTX.h

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ struct NVPTXLowerArgsPass : PassInfoMixin<NVPTXLowerArgsPass> {
9898
};
9999

100100
namespace NVPTX {
101-
enum DrvInterface { NVCL, CUDA };
101+
enum DrvInterface {
102+
NVCL,
103+
CUDA
104+
};
102105

103106
// A field inside TSFlags needs a shift and a mask. The usage is
104107
// always as follows :
@@ -120,7 +123,10 @@ enum VecInstType {
120123
VecOther = 15
121124
};
122125

123-
enum SimpleMove { SimpleMoveMask = 0x10, SimpleMoveShift = 4 };
126+
enum SimpleMove {
127+
SimpleMoveMask = 0x10,
128+
SimpleMoveShift = 4
129+
};
124130
enum LoadStore {
125131
isLoadMask = 0x20,
126132
isLoadShift = 5,
@@ -169,8 +175,17 @@ enum AddressSpace : AddressSpaceUnderlyingType {
169175
};
170176

171177
namespace PTXLdStInstCode {
172-
enum FromType { Unsigned = 0, Signed, Float, Untyped };
173-
enum VecType { Scalar = 1, V2 = 2, V4 = 4 };
178+
enum FromType {
179+
Unsigned = 0,
180+
Signed,
181+
Float,
182+
Untyped
183+
};
184+
enum VecType {
185+
Scalar = 1,
186+
V2 = 2,
187+
V4 = 4
188+
};
174189
} // namespace PTXLdStInstCode
175190

176191
/// PTXCvtMode - Conversion code enumeration
@@ -233,7 +248,7 @@ enum PrmtMode {
233248
RC16,
234249
};
235250
}
236-
} // namespace NVPTX
251+
}
237252
void initializeNVPTXDAGToDAGISelLegacyPass(PassRegistry &);
238253
} // namespace llvm
239254

llvm/lib/Target/NVPTX/NVVMReflect.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ void NVVMReflect::populateReflectMap(Module &M) {
125125
"'");
126126
int ValInt;
127127
if (!to_integer(Val.trim(), ValInt, 10))
128-
report_fatal_error(
129-
"integer value expected in nvvm-reflect-add option '" + Option +
130-
"'");
128+
report_fatal_error("integer value expected in nvvm-reflect-add option '" +
129+
Option + "'");
131130
ReflectMap[Name] = ValInt;
132131
}
133132
}
@@ -224,7 +223,8 @@ bool NVVMReflect::runOnModule(Module &M) {
224223
bool Changed = true;
225224
Changed |= handleReflectFunction(M, NVVM_REFLECT_FUNCTION);
226225
Changed |= handleReflectFunction(M, NVVM_REFLECT_OCL_FUNCTION);
227-
Changed |= handleReflectFunction(M, Intrinsic::getName(Intrinsic::nvvm_reflect));
226+
Changed |=
227+
handleReflectFunction(M, Intrinsic::getName(Intrinsic::nvvm_reflect));
228228
return Changed;
229229
}
230230

0 commit comments

Comments
 (0)