@@ -18963,15 +18963,24 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
1896318963 case Builtin::BI__builtin_hlsl_wave_active_any_true: {
1896418964 // Assert Op->getType() == Bool
1896518965
18966- // FIXME: PR Question: Can this be simpler? Looks like Int1Ty isn't predefined
18967- IntegerType* Int1Ty = llvm::Type::getInt1Ty(CGM.getTypes().getLLVMContext());
18966+ // FIXME: PR Question: Can this be simpler? Looks like Int1Ty isn't
18967+ // predefined
18968+ IntegerType *Int1Ty =
18969+ llvm::Type::getInt1Ty(CGM.getTypes().getLLVMContext());
1896818970 Value *Op = EmitScalarExpr(E->getArg(0));
18969- assert(Op->getType() == Int1Ty && "wave_active_any_true operand must be a bool");
18970-
18971- // FIXME: PR Question: Re Style SingleRef vs {SingleRef} vs ArrayRef{SingleRef}
18972- llvm::FunctionType *FT = llvm::FunctionType::get(Int1Ty, {Int1Ty}, /*isVarArg=*/false);
18973- llvm::StringRef Name = Intrinsic::getName(CGM.getHLSLRuntime().getWaveActiveAnyTrueIntrinsic());
18974- return EmitRuntimeCall(CGM.CreateRuntimeFunction(FT, Name, {}, /*Local=*/false, /*AssumeConvergent=*/true), {Op}, "hlsl.wave.activeanytrue");
18971+ assert(Op->getType() == Int1Ty &&
18972+ "wave_active_any_true operand must be a bool");
18973+
18974+ // FIXME: PR Question: Re Style SingleRef vs {SingleRef} vs
18975+ // ArrayRef{SingleRef}
18976+ llvm::FunctionType *FT =
18977+ llvm::FunctionType::get(Int1Ty, {Int1Ty}, /*isVarArg=*/false);
18978+ llvm::StringRef Name = Intrinsic::getName(
18979+ CGM.getHLSLRuntime().getWaveActiveAnyTrueIntrinsic());
18980+ return EmitRuntimeCall(CGM.CreateRuntimeFunction(FT, Name, {},
18981+ /*Local=*/false,
18982+ /*AssumeConvergent=*/true),
18983+ {Op}, "hlsl.wave.activeanytrue");
1897518984 }
1897618985 case Builtin::BI__builtin_hlsl_wave_get_lane_index: {
1897718986 // We don't define a SPIR-V intrinsic, instead it is a SPIR-V built-in
0 commit comments