diff options
| author | Jay Foad <jay.foad@amd.com> | 2025-11-04 12:00:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-04 12:00:44 +0000 |
| commit | f037f413506af9e32898e102f391175a3a2852ef (patch) | |
| tree | 2c913889b1c004109a6ccfc360cbf08dd1d6ad0d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | f59beca459481554aef0d069f4ef4a0a66880593 (diff) | |
| download | llvm-f037f413506af9e32898e102f391175a3a2852ef.zip llvm-f037f413506af9e32898e102f391175a3a2852ef.tar.gz llvm-f037f413506af9e32898e102f391175a3a2852ef.tar.bz2 | |
[IR] Add new function attribute nocreateundeforpoison (#164809)
Also add a corresponding intrinsic property that can be used to mark
intrinsics that do not introduce poison, for example simple arithmetic
intrinsics that propagate poison just like a simple arithmetic
instruction.
As a smoke test this patch adds the new property to
llvm.amdgcn.fmul.legacy.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 1bdf3e9f..8930d64 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -2257,6 +2257,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) { return Attribute::Captures; case bitc::ATTR_KIND_DEAD_ON_RETURN: return Attribute::DeadOnReturn; + case bitc::ATTR_KIND_NO_CREATE_UNDEF_OR_POISON: + return Attribute::NoCreateUndefOrPoison; } } |
