Skip to content

Commit

Permalink
[NVVM] Mark the pointer argument of llvm.nvvm.isspace.* nocapture
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D135172
  • Loading branch information
jdoerfert committed Oct 5, 2022
1 parent 74a130a commit 792e60c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions llvm/include/llvm/IR/IntrinsicsNVVM.td
Original file line number Diff line number Diff line change
Expand Up @@ -1582,19 +1582,23 @@ def int_nvvm_reflect :

// isspacep.{const, global, local, shared}
def int_nvvm_isspacep_const
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty], [IntrNoMem, IntrSpeculatable],
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
[IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
"llvm.nvvm.isspacep.const">,
ClangBuiltin<"__nvvm_isspacep_const">;
def int_nvvm_isspacep_global
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty], [IntrNoMem, IntrSpeculatable],
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
[IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
"llvm.nvvm.isspacep.global">,
ClangBuiltin<"__nvvm_isspacep_global">;
def int_nvvm_isspacep_local
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty], [IntrNoMem, IntrSpeculatable],
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
[IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
"llvm.nvvm.isspacep.local">,
ClangBuiltin<"__nvvm_isspacep_local">;
def int_nvvm_isspacep_shared
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty], [IntrNoMem, IntrSpeculatable],
: DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
[IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
"llvm.nvvm.isspacep.shared">,
ClangBuiltin<"__nvvm_isspacep_shared">;

Expand Down

0 comments on commit 792e60c

Please sign in to comment.