To build llvm with the generated patterns successfully, I need to add explicit type cast for every operand (even GPR:$rs1). Is this expected?
Error:
anonymous_60131: (add:{ *:[i32] m1:[i32 i64] } GPR:{ *:[i32] m1:[i32 i64] }:$rs2, GPR:{ *:[i32] m1:[i32 i64] }:$rs1)
Included from /tmp/<...>_llvm_demo/llvm/lib/Target/RISCV/RISCV.td:73:
Included from /tmp/<...>_llvm_demo/llvm/lib/Target/RISCV/<...>.td:7:
Included from /tmp/<...>_llvm_demo/llvm/lib/Target/RISCV/<...>/myext_alu.td:4:
/tmp/<...>_llvm_demo/llvm/lib/Target/RISCV/<...>/myext_alu/adds32.td:3:1: error: In anonymous_60131: Could not infer all types in pattern!
def : Pat<
To build llvm with the generated patterns successfully, I need to add explicit type cast for every operand (even
GPR:$rs1
). Is this expected?Error:
Manual Fix: