llvm-project/clang/test/CodeGen/import-call-optimization.c
Daniel Paoliello 845cc968e9
[clang][llvm][aarch64][win] Add a clang flag and module attribute for import call optimization, and remove LLVM flag (#122831)
Switches import call optimization from being enabled by an LLVM flag to
instead using a module attribute, and creates a new Clang flag that will
set that attribute. This addresses the concern raised in the original
PR:
<https://github.com/llvm/llvm-project/pull/121516#discussion_r1911763991>

This change also only creates the Called Global info if the module
attribute is present, addressing this concern:
<https://github.com/llvm/llvm-project/pull/122762#pullrequestreview-2547595934>
2025-01-30 09:51:43 -08:00

6 lines
143 B
C

// RUN: %clang_cc1 -import-call-optimization -emit-llvm %s -o - | FileCheck %s
void f(void) {}
// CHECK: !"import-call-optimization", i32 1}