[Attributes] Add additional MemoryEffects APIs (NFC)
authorNikita Popov <npopov@redhat.com>
Mon, 31 Oct 2022 09:34:51 +0000 (10:34 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 31 Oct 2022 09:44:51 +0000 (10:44 +0100)
commita2ab8fc46c63e6d21b6648202907a33064fbfb6e
tree77281cf0e05d7277606a4eeb74c86d082e6ef6be
parentdf23ede2f117c8a6483cf6cded09fa63f1deda23
[Attributes] Add additional MemoryEffects APIs (NFC)

This adds the usual complement of APIs for creating and fetching
a non-trivial attribute.

Split out from D135780.
llvm/include/llvm/IR/Attributes.h
llvm/lib/IR/AttributeImpl.h
llvm/lib/IR/Attributes.cpp