HomePhabricator

Verify the LLVMContext that an Attribute belongs to.

Authored by nickwasmer on Mar 24 2021, 4:13 PM.

Description

Verify the LLVMContext that an Attribute belongs to.

Attributes don't know their parent Context, adding this would make Attribute larger. Instead, we add hasParentContext that answers whether this Attribute belongs to a particular LLVMContext by checking for itself inside the context's FoldingSet. Same with AttributeSet and AttributeList. The Verifier checks them with the Module context.

Differential Revision: https://reviews.llvm.org/D99362

Details

Committed
nicholasApr 16 2021, 9:44 AM
Differential Revision
D99362: Verify the LLVMContext for Attributes.
Parents
rG8f683366afcf: [RISCV][Clang] Add RVV miscellaneous intrinsic functions.
Branches
Unknown
Tags
Unknown