[clang] [llvm] [memprof] Add memprof options as a clang frontend flag (PR #128615)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 07:29:51 PST 2025


================
@@ -17,3 +17,10 @@
 
 // RUN: not %clangxx --target=x86_64-linux-gnu -fprofile-generate -fmemory-profile-use=foo %s -### 2>&1 | FileCheck %s --check-prefix=CONFLICTWITHPGOINSTR
 // CONFLICTWITHPGOINSTR: error: invalid argument '-fmemory-profile-use=foo' not allowed with '-fprofile-generate'
+
+// RUN: %clangxx --target=arm64-apple-ios -fmemory-profile -fmemory-profile-runtime-default-options="verbose=1" %s -### 2>&1 | FileCheck %s --check-prefix=OPTS
----------------
teresajohnson wrote:

Can you add a comment above this block about what is being tested? Also maybe add a non-apple test to check that we don't add an exported symbol option in that case.

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


More information about the llvm-commits mailing list