Here is the llvm dialect code:
module {
llvm.func @mat_test(%arg0i:i32)
{
......
llvm.return
}
}
I want to get the memory space type of %arg0, and save it as a metadata info. It seems that the ‘mlir-translate’ tool can not do this.
The questions are:
- how to get the memory space type of an argument?
- how to pass the memory space type metadata to llvm IR?