[llvm] [IR] Add new Range attribute using new ConstantRange Attribute type (PR #83171)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 13:10:54 PST 2024


andjo403 wrote:

yes this assert fails so think that is correct:
```
static_assert(std::is_trivially_destructible<ConstantRangeAttributeImpl>::value,
              "ConstantRangeAttributeImpl should be trivially destructible");
```
StringAttributeImpl use some TrailingObjects base class maybe some thing that we need to use also?
`private TrailingObjects<ConstantRangeAttributeImpl, APInt::WordType>` and then add `unsigned LowerNumWords` and UpperNumWords
 

https://github.com/llvm/llvm-project/pull/83171


More information about the llvm-commits mailing list