[clang] [compiler-rt] [llvm] [HIP] support 128 bit int division (PR #71978)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 7 14:22:29 PST 2023


================
@@ -3630,10 +3631,17 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI,
 
   std::vector<SDValue> Ops;
   Ops.push_back(Chain);
+  bool AddTargetGlobalAddr = true;
+  // Try to find the callee in the current module.
+  if (isa<ExternalSymbolSDNode>(Callee)) {
+    Callee = DAG.getSymbolFunctionGlobalAddress(Callee);
+    AddTargetGlobalAddr = false;
+  }
----------------
yxsamliu wrote:

backend changes separated to https://github.com/llvm/llvm-project/pull/74741

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


More information about the cfe-commits mailing list