================
@@ -1750,19 +1739,31 @@ def BFMOV16i : MOVi<B16, "b16", bf16, bf16imm, fpimm>;
def FMOV32i : MOVi<B32, "b32", f32, f32imm, fpimm>;
def FMOV64i : MOVi<B64, "b64", f64, f64imm, fpimm>;
-def : Pat<(i32 (Wrapper texternalsym:$dst)), (IMOV32i texternalsym:$dst)>;
-def : Pat<(i64 (Wrapper texternalsym:$dst)), (IMOV64i texternalsym:$dst)>;
+
+def to_tglobaladdr : SDNodeXForm<globaladdr, [{
+ return CurDAG->getTargetGlobalAddress(N->getGlobal(), SDLoc(N),
N->getValueType(0), N->getOffset(), N->getTargetFlags());
+}]>;
+
+def to_texternsym : SDNodeXForm<externalsym, [{
+ return CurDAG->getTargetExternalSymbol(N->getSymbol(), N->getValueType(0),
N->getTargetFlags());
+}]>;
----------------
AlexMaclean wrote:
Fixed!
https://github.com/llvm/llvm-project/pull/145581
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits