[llvm] [aarch64][win] Add support for import call optimization (equivalent to MSVC /d2ImportCallOptimization) (PR #121516)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 17:33:19 PST 2025


================
@@ -0,0 +1,9 @@
+// RUN: not llvm-mc -triple aarch64-windows-msvc -filetype obj < %s 2>&1 | FileCheck %s
+
+tail_call:
+  adrp    x8, __imp_b
+  ldr     x8, [x8, :lo12:__imp_b]
+  .impcall        __imp_b
+  br     x8
+
+// CHECK: error: .impcall directives were used, but no existing .impcall section exists
----------------
arsenm wrote:

Is it possible to include a source location 

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


More information about the llvm-commits mailing list