Home
last modified time | relevance | path

Searched refs:fmtCtx (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/mlir/tools/mlir-tblgen/
DRewriterGen.cpp205 FmtContext fmtCtx; member in __anon08e8fbd40111::PatternEmitter
216 fmtCtx.withBuilder("rewriter"); in PatternEmitter()
226 return std::string(tgfmt(attr.getConstBuilderTemplate(), &fmtCtx, value)); in handleConstantAttr()
285 fmt, &fmtCtx.addSubst("_loc", locToUse), opName, capture[0], capture[1], in emitNativeCodeMatch()
314 tgfmt(constraint.getConditionTemplate(), &fmtCtx.withSelf(self)), in emitNativeCodeMatch()
424 tgfmt(constraint.getConditionTemplate(), &fmtCtx.withSelf(self)), in emitOperandMatch()
463 << std::string(tgfmt(attr.getConstBuilderTemplate(), &fmtCtx, in emitAttributeMatch()
471 emitMatchCheck(opName, tgfmt("tblgen_attr", &fmtCtx), in emitAttributeMatch()
490 tgfmt(matcher.getConditionTemplate(), &fmtCtx.withSelf("tblgen_attr")), in emitAttributeMatch()
537 opName, tgfmt(condition, &fmtCtx.withSelf(self.str())), in emitMatchLogic()
[all …]
DStructsGen.cpp244 FmtContext fmtCtx; in emitAccessorDef() local
245 fmtCtx.withBuilder("builder"); in emitAccessorDef()
254 std::string defaultValue = tgfmt(type.getConstBuilderTemplate(), &fmtCtx, in emitAccessorDef()