Skip to content

Commit ba1e9f2

Browse files
committed
add comment
1 parent 167718e commit ba1e9f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18827,6 +18827,9 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
1882718827
ArrayRef<Value *>{Op0, Op1}, nullptr, "hlsl.step");
1882818828
}
1882918829
case Builtin::BI__builtin_hlsl_wave_get_lane_index: {
18830+
// Since we don't define a SPIR-V intrinsic for the SPIR-V built-in from
18831+
// SPIRVBuiltins.td, manually get the matching name for the DirectX
18832+
// intrinsic and the demangled builtin name
1883018833
switch (CGM.getTarget().getTriple().getArch()) {
1883118834
case llvm::Triple::dxil:
1883218835
return EmitRuntimeCall(Intrinsic::getDeclaration(

0 commit comments

Comments
 (0)