aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAugie Fackler <augie@google.com>2022-01-21 11:22:09 -0500
committerAugie Fackler <augie@google.com>2022-03-04 15:57:53 -0500
commitd664c4b73c5dc994d4caa6c70bb5e59ada414b90 (patch)
tree20b454578993034f2e4dd78761d18b03f7190904 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parente5eb365069cce7bb642421d53a1d3964f8d5bdb7 (diff)
downloadllvm-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/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index cba5680..edeacf4 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1520,6 +1520,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
return Attribute::Dereferenceable;
case bitc::ATTR_KIND_DEREFERENCEABLE_OR_NULL:
return Attribute::DereferenceableOrNull;
+ case bitc::ATTR_KIND_ALLOC_ALIGN:
+ return Attribute::AllocAlign;
case bitc::ATTR_KIND_ALLOC_SIZE:
return Attribute::AllocSize;
case bitc::ATTR_KIND_NO_RED_ZONE: