[PATCH] D80422: Enable `align <n>` to be used in intrinsic definitions.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 21:38:30 PDT 2020
hliao created this revision.
hliao added a reviewer: arsenm.
Herald added subscribers: llvm-commits, jdoerfert, hiraditya, wdng.
Herald added a project: LLVM.
hliao added a comment.
To prepare the refactoring on D80364 <https://reviews.llvm.org/D80364>, intrinsics interested should be specified with the alignment on the return pointer. With this patch, `amdgcn.dispatch.ptr` is defined as follows
def int_amdgcn_dispatch_ptr :
Intrinsic<[LLVMQualPointerType<llvm_i8_ty, 4>], [],
[Align<-1, 4>, IntrNoMem, IntrSpeculatable]>;
- This enable specifying the alignment on the return value as well as parameters.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80422
Files:
llvm/include/llvm/IR/Attributes.h
llvm/include/llvm/IR/Intrinsics.td
llvm/lib/IR/Attributes.cpp
llvm/utils/TableGen/CodeGenIntrinsics.h
llvm/utils/TableGen/CodeGenTarget.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80422.265668.patch
Type: text/x-patch
Size: 8281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200522/67ccbdb6/attachment.bin>
More information about the llvm-commits
mailing list