[llvm] Add the 'initializes' attribute langref and support (PR #84803)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 14:56:52 PDT 2024
================
@@ -616,6 +661,23 @@ std::string Attribute::getAsString(bool InAttrGrp) const {
return Result;
}
+ if (hasAttribute(Attribute::Initializes)) {
+ std::string Result;
+ raw_string_ostream OS(Result);
+ ConstantRangeList CRL = getValueAsConstantRangeList();
+ OS << "initializes(";
+ size_t i = 0;
+ for (auto &CR : CRL) {
----------------
aeubanks wrote:
use the recently introduced `interleaveComma`
https://github.com/llvm/llvm-project/pull/84803
More information about the llvm-commits
mailing list