Skip to content

Commit 6d0eb98

Browse files
committed
Clang format
1 parent e12c903 commit 6d0eb98

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

clang/lib/CodeGen/CGHLSLBuiltins.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
382382
}
383383
case Builtin::BI__builtin_hlsl_dot2add: {
384384
llvm::Triple::ArchType Arch = CGM.getTarget().getTriple().getArch();
385-
assert(Arch == llvm::Triple::dxil &&
386-
"Intrinsic dot2add is only allowed for dxil architecture");
385+
assert(Arch == llvm::Triple::dxil &&
386+
"Intrinsic dot2add is only allowed for dxil architecture");
387387
Value *A = EmitScalarExpr(E->getArg(0));
388388
Value *B = EmitScalarExpr(E->getArg(1));
389389
Value *C = EmitScalarExpr(E->getArg(2));

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const inline float distance(__detail::HLSL_FIXED_VECTOR<float, N> X,
181181

182182
/// \fn float dot2add(half2 A, half2 B, float C)
183183
/// \brief Dot product of 2 vector of type half and add a float scalar value.
184-
/// \param A The first input value to dot product.
184+
/// \param A The first input value to dot product.
185185
/// \param B The second input value to dot product.
186186
/// \param C The input value added to the dot product.
187187

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ static SmallVector<Value *> populateOperands(Value *Arg, IRBuilder<> &Builder) {
5454
return ExtractedElements;
5555
}
5656

57-
static SmallVector<Value *> argVectorFlatten(CallInst *Orig,
58-
IRBuilder<> &Builder,
59-
unsigned NumOperands) {
57+
static SmallVector<Value *>
58+
argVectorFlatten(CallInst *Orig, IRBuilder<> &Builder, unsigned NumOperands) {
6059
assert(NumOperands > 0);
6160
Value *Arg0 = Orig->getOperand(0);
6261
[[maybe_unused]] auto *VecArg0 = dyn_cast<FixedVectorType>(Arg0->getType());
@@ -77,7 +76,7 @@ static SmallVector<Value *> argVectorFlatten(CallInst *Orig,
7776
static SmallVector<Value *> argVectorFlatten(CallInst *Orig,
7877
IRBuilder<> &Builder) {
7978
// Note: arg[NumOperands-1] is a pointer and is not needed by our flattening.
80-
return argVectorFlatten(Orig, Builder, Orig->getNumOperands() - 1);
79+
return argVectorFlatten(Orig, Builder, Orig->getNumOperands() - 1);
8180
}
8281

8382
namespace {
@@ -175,7 +174,8 @@ class OpLowerer {
175174
Args = argVectorFlatten(CI, OpBuilder.getIRB());
176175
} else if (F.getIntrinsicID() == Intrinsic::dx_dot2add) {
177176
// arg[NumOperands-1] is a pointer and is not needed by our flattening.
178-
// arg[NumOperands-2] also does not need to be flattened because it is a scalar.
177+
// arg[NumOperands-2] also does not need to be flattened because it is a
178+
// scalar.
179179
unsigned NumOperands = CI->getNumOperands() - 2;
180180
Args.push_back(CI->getArgOperand(NumOperands));
181181
Args.append(argVectorFlatten(CI, OpBuilder.getIRB(), NumOperands));

0 commit comments

Comments
 (0)