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/Writer/BitcodeWriter.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/Writer/BitcodeWriter.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index f17656c..76494c7 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -956,6 +956,8 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) { return bitc::ATTR_KIND_CAPTURES; case Attribute::DeadOnReturn: return bitc::ATTR_KIND_DEAD_ON_RETURN; + case Attribute::NoCreateUndefOrPoison: + return bitc::ATTR_KIND_NO_CREATE_UNDEF_OR_POISON; case Attribute::EndAttrKinds: llvm_unreachable("Can not encode end-attribute kinds marker."); case Attribute::None: |
