diff options
author | Augie Fackler <augie@google.com> | 2022-01-21 11:22:09 -0500 |
---|---|---|
committer | Augie Fackler <augie@google.com> | 2022-03-04 15:57:53 -0500 |
commit | d664c4b73c5dc994d4caa6c70bb5e59ada414b90 (patch) | |
tree | 20b454578993034f2e4dd78761d18b03f7190904 /llvm/lib/IR/Attributes.cpp | |
parent | e5eb365069cce7bb642421d53a1d3964f8d5bdb7 (diff) | |
download | llvm-d664c4b73c5dc994d4caa6c70bb5e59ada414b90.zip llvm-d664c4b73c5dc994d4caa6c70bb5e59ada414b90.tar.gz llvm-d664c4b73c5dc994d4caa6c70bb5e59ada414b90.tar.bz2 |
Attributes: add a new allocalign attribute
This will let us start moving away from hard-coded attributes in
MemoryBuiltins.cpp and put the knowledge about various attribute
functions in the compilers that emit those calls where it probably
belongs.
Differential Revision: https://reviews.llvm.org/D117921
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index f88f75e2..73c0f59 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -1780,7 +1780,8 @@ AttributeMask AttributeFuncs::typeIncompatible(Type *Ty) { if (!Ty->isIntegerTy()) // Attributes that only apply to integers. Incompatible.addAttribute(Attribute::SExt) - .addAttribute(Attribute::ZExt); + .addAttribute(Attribute::ZExt) + .addAttribute(Attribute::AllocAlign); if (!Ty->isPointerTy()) // Attributes that only apply to pointers. |