Use void (ptr)
on LLVM::GlobalOp
when available in LLVM dialect to represent aliased functions
#1083
Labels
blocked-by-mlir-support
IR difference
A difference in ClangIR-generated LLVM IR that could complicate reusing original CodeGen tests
Similar issue from #1065, we cannot use globals at all (even if we ignore the absence of
alias
) to start representing aliases.llvm.mlir.global
s don't seem to accept anything besides!llvm.ptr
as it's types and there are no existing casts to use in its initializers that can allows us to map fromllvm.mlir.addressof
.To be more concrete, I want to generate this following LLVM IR code:
This also needs to be filed against upstream MLIR.
The text was updated successfully, but these errors were encountered: