[Mlir-commits] [mlir] mlir: add an operation to EmitC for function template instantiation (PR #100895)

Gil Rapaport llvmlistbot at llvm.org
Tue Jul 30 08:05:52 PDT 2024


aniragil wrote:

I wonder how this op relates to the existing `call_opaque` op, which already contains extensive support for calling template instantiations, including specifying SSA values as template arguments. It currently doesn't allow specifying the type of its SSA operands using `decltype`, but could probably be extended to do so. If so, we could perhaps treat template instantiation as a special case of call_opaque. If this is too much of a semantic stretch (as it is after all not a call), then it would be good if the new op uses the same format as call_opaque to the relevant extent.

https://github.com/llvm/llvm-project/pull/100895


More information about the Mlir-commits mailing list