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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user