The current translation uses the old "ugly"/"raw" form which used PDLValue for the arguments
and results. This commit updates the C++ generation to use the recently added sugar that
allows for directly using the desired types for the arguments and result of PDL functions.
In addition, this commit also properly imports the C++ class for ODS operations, constraints,
and interfaces. This allows for a much more convienent C++ API than previously granted
with the raw/low-level types.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Tools/PDLL/CodeGen/CPPGen.cpp | ||
---|---|---|
172 | This is called for constraints on VariableDecls, which have only one input. I merged this function into the VariableDecl overload so that the single input expectation is more obvious. |
able allowed? (Guessing s/able//)