Details
Details
- Reviewers
gysit ftynse nicolasvasilache dcaballe
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This moves the builder's C++ code from C++ to tablegen we normally try to keep C++ code in ODS files for minimum. If you want this generated you could implement the infer result type interface on this op and then you'd not need to define any custom builder AFAICS.
Comment Actions
Sorry, i dont understand you, so what do you suggest for this modification?
I think Jacques suggested two options:
- either leave the builders in the C++ file rather than importing them into tablegen,
or
- add an interface on the LLVM_ArithmeticCmpOp to infer the result types and generate the builders automatically without writing C++ in tablegen.
I think the right interface is InferTypeOpInterface which declares the inferReturnTypes method. I am not a 100% sure though.