================ @@ -1033,6 +1033,60 @@ while (true) {{ emitVerifier(namedAttr.attr, namedAttr.name, getVarName(namedAttr.name)); } +static void genPropertyVerifier(const OpOrAdaptorHelper &emitHelper, + FmtContext &ctx, MethodBody &body) { + + // Code to get a reference to a property into a variable to avoid multiple + // evaluations while verifying a property. + // {0}: Property variable name. + // {1}: Property name, with the first letter capitalized, to find the getter. + // {2}: Property interface type. + const char *const fetchProperty = R"( + {2} {0} = this->get{1}(); (void){0}; +)"; + + // Code to verify that the predicate of a property holds. Embeds the + // condition inline. + // {0}: Property condition code, pre-tgfmt()'d. ---------------- zero9178 wrote:
```suggestion // {0}: Property condition code, post-tgfmt()'d. ``` https://github.com/llvm/llvm-project/pull/120176 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits