Skip to content

Commit 6f2f8eb

Browse files
committed
make clang format happy
1 parent d27acf8 commit 6f2f8eb

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
@@ -18875,13 +18875,13 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
1887518875
"hlsl.dot4add.i8packed");
1887618876
}
1887718877
case Builtin::BI__builtin_hlsl_elementwise_firstbithigh: {
18878-
18878+
1887918879
Value *X = EmitScalarExpr(E->getArg(0));
18880-
18880+
1888118881
return Builder.CreateIntrinsic(
18882-
/*ReturnType=*/X->getType(),
18883-
getFirstBitHighIntrinsic(CGM.getHLSLRuntime(), E->getArg(0)->getType()),
18884-
ArrayRef<Value *>{X}, nullptr, "hlsl.firstbithigh");
18882+
/*ReturnType=*/X->getType(),
18883+
getFirstBitHighIntrinsic(CGM.getHLSLRuntime(), E->getArg(0)->getType()),
18884+
ArrayRef<Value *>{X}, nullptr, "hlsl.firstbithigh");
1888518885
}
1888618886
case Builtin::BI__builtin_hlsl_lerp: {
1888718887
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
@@ -1079,7 +1079,7 @@ _HLSL_BUILTIN_ALIAS(__builtin_hlsl_elementwise_firstbithigh)
10791079
uint64_t3 firstbithigh(uint64_t3);
10801080
_HLSL_BUILTIN_ALIAS(__builtin_hlsl_elementwise_firstbithigh)
10811081
uint64_t4 firstbithigh(uint64_t4);
1082-
1082+
10831083
//===----------------------------------------------------------------------===//
10841084
// floor builtins
10851085
//===----------------------------------------------------------------------===//

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

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

223223
bool selectExtInst(Register ResVReg, const SPIRVType *RestType,
224-
MachineInstr &I, GL::GLSLExtInst GLInst) const;
224+
MachineInstr &I, GL::GLSLExtInst GLInst) const;
225225
bool selectExtInst(Register ResVReg, const SPIRVType *ResType,
226226
MachineInstr &I, CL::OpenCLExtInst CLInst) const;
227227
bool selectExtInst(Register ResVReg, const SPIRVType *ResType,
@@ -772,11 +772,11 @@ bool SPIRVInstructionSelector::spvSelect(Register ResVReg,
772772
}
773773

774774
bool SPIRVInstructionSelector::selectExtInst(Register ResVReg,
775-
const SPIRVType *ResType,
776-
MachineInstr &I,
777-
GL::GLSLExtInst GLInst) const {
775+
const SPIRVType *ResType,
776+
MachineInstr &I,
777+
GL::GLSLExtInst GLInst) const {
778778
return selectExtInst(ResVReg, ResType, I,
779-
{{SPIRV::InstructionSet::GLSL_std_450, GLInst}});
779+
{{SPIRV::InstructionSet::GLSL_std_450, GLInst}});
780780
}
781781

782782
bool SPIRVInstructionSelector::selectExtInst(Register ResVReg,

0 commit comments

Comments
 (0)