================ @@ -2861,6 +2861,69 @@ def int_experimental_convergence_anchor def int_experimental_convergence_loop : DefaultAttrsIntrinsic<[llvm_token_ty], [], [IntrNoMem, IntrConvergent]>; +//===------- GPU Intrinsics -----------------------------------------------===// + +class GPUIntrinsic<LLVMType ret_type, string name> + : DefaultAttrsIntrinsic<[ret_type], + [], + [NoUndef<RetIndex>, IntrNoMem, IntrSpeculatable]>, + ClangBuiltin<name>; ---------------- JonChesterfield wrote:
It doesn't break amdgpu attributor. The attributor will correctly completely ignore these intrinsics, as it should do, unless at some point we decide the amdgpu attributor should start working in terms of target agnostic intrinsics at which point it'll work fine. We don't need an extra test showing that the amdgpu attributor works correctly when shown unknown intrinsics, because if it doesn't have that property already it's already severely broken. https://github.com/llvm/llvm-project/pull/131190 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits