Enable `align <n>` to be used in the intrinsic definition.
authorMichael Liao <michael.hliao@gmail.com>
Wed, 27 May 2020 20:02:15 +0000 (16:02 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Wed, 27 May 2020 20:38:18 +0000 (16:38 -0400)
commitfa342b5c8054dad4cfd1032ac580d71f0f4943d3
tree240b35471023db76530eb91c4fc0c78785f53df2
parent03481287ca530494512d128cbbdc9c87f2d84921
Enable `align <n>` to be used in the intrinsic definition.

- This allow us to specify the (minimal) alignment on an intrinsic's
  arguments and, more importantly, the return value.

Differential Revision: https://reviews.llvm.org/D80422
llvm/include/llvm/IR/Attributes.h
llvm/include/llvm/IR/Intrinsics.td
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/IR/Attributes.cpp
llvm/test/CodeGen/AMDGPU/reqd-work-group-size.ll
llvm/utils/TableGen/CodeGenIntrinsics.h
llvm/utils/TableGen/CodeGenTarget.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp