Skip to content

Commit ec1bc6b

Browse files
committed
make clang format happy
1 parent 62af641 commit ec1bc6b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18737,13 +18737,13 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
1873718737
ArrayRef<Value *>{Op0, Op1}, nullptr, "hlsl.dot");
1873818738
} break;
1873918739
case Builtin::BI__builtin_hlsl_elementwise_firstbithigh: {
18740-
18740+
1874118741
Value *X = EmitScalarExpr(E->getArg(0));
18742-
18742+
1874318743
return Builder.CreateIntrinsic(
18744-
/*ReturnType=*/X->getType(),
18745-
getFirstBitHighIntrinsic(CGM.getHLSLRuntime(), E->getArg(0)->getType()),
18746-
ArrayRef<Value *>{X}, nullptr, "hlsl.firstbithigh");
18744+
/*ReturnType=*/X->getType(),
18745+
getFirstBitHighIntrinsic(CGM.getHLSLRuntime(), E->getArg(0)->getType()),
18746+
ArrayRef<Value *>{X}, nullptr, "hlsl.firstbithigh");
1874718747
}
1874818748
case Builtin::BI__builtin_hlsl_lerp: {
1874918749
Value *X = EmitScalarExpr(E->getArg(0));

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_elementwise_firstbithigh)
10291029
uint64_t3 firstbithigh(uint64_t3);
10301030
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_elementwise_firstbithigh)
10311031
uint64_t4 firstbithigh(uint64_t4);
1032-
1032+
10331033
//===----------------------------------------------------------------------===//
10341034
// floor builtins
10351035
//===----------------------------------------------------------------------===//

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class SPIRVInstructionSelector : public InstructionSelector {
214214
MachineInstr &I) const;
215215

216216
bool selectExtInst(Register ResVReg, const SPIRVType *RestType,
217-
MachineInstr &I, GL::GLSLExtInst GLInst) const;
217+
MachineInstr &I, GL::GLSLExtInst GLInst) const;
218218
bool selectExtInst(Register ResVReg, const SPIRVType *ResType,
219219
MachineInstr &I, CL::OpenCLExtInst CLInst) const;
220220
bool selectExtInst(Register ResVReg, const SPIRVType *ResType,
@@ -764,11 +764,11 @@ bool SPIRVInstructionSelector::spvSelect(Register ResVReg,
764764
}
765765

766766
bool SPIRVInstructionSelector::selectExtInst(Register ResVReg,
767-
const SPIRVType *ResType,
768-
MachineInstr &I,
769-
GL::GLSLExtInst GLInst) const {
767+
const SPIRVType *ResType,
768+
MachineInstr &I,
769+
GL::GLSLExtInst GLInst) const {
770770
return selectExtInst(ResVReg, ResType, I,
771-
{{SPIRV::InstructionSet::GLSL_std_450, GLInst}});
771+
{{SPIRV::InstructionSet::GLSL_std_450, GLInst}});
772772
}
773773

774774
bool SPIRVInstructionSelector::selectExtInst(Register ResVReg,

0 commit comments

Comments
 (0)