We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e632569 commit 9ba0a77Copy full SHA for 9ba0a77
compiler-rt/include/sanitizer/memprof_interface.h
@@ -47,8 +47,8 @@ void SANITIZER_CDECL __memprof_print_accumulated_stats(void);
47
48
/// User-provided default option settings.
49
///
50
-/// You can set these options via the -memprof-default-options LLVM flag or
51
-/// you can provide your own implementation of this function. See
+/// You can set these options via the -memprof-runtime-default-options LLVM flag
+/// or you can provide your own implementation of this function. See
52
/// memprof_flags.h for more info.
53
54
/// \returns Default options string.
compiler-rt/lib/memprof/memprof_flags.h
@@ -22,8 +22,8 @@
22
// prior one:
23
// 1) by setting MEMPROF_DEFAULT_OPTIONS during the compilation of the MemProf
24
// runtime
25
-// 2) by setting the LLVM flag -memprof-default-options during the compilation
26
-// of your binary
+// 2) by setting the LLVM flag -memprof-runtime-default-options during the
+// compilation of your binary
27
// 3) by overriding the user-specified function __memprof_default_options()
28
// 4) by setting the environment variable MEMPROF_OPTIONS during runtime
29
compiler-rt/test/memprof/TestCases/set_options.cpp
@@ -1,7 +1,7 @@
1
// RUN: %clangxx_memprof %s -o %t-default
2
// RUN: %run %t-default | FileCheck %s --check-prefix=DEFAULT
3
4
-// RUN: %clangxx_memprof %s -mllvm -memprof-default-options="print_text=true,log_path=stdout,atexit=false" -o %t
+// RUN: %clangxx_memprof %s -mllvm -memprof-runtime-default-options="print_text=true,log_path=stdout,atexit=false" -o %t
5
// RUN: %run %t | FileCheck %s
6
7
#include <sanitizer/memprof_interface.h>
llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
@@ -167,9 +167,9 @@ static cl::opt<bool>
167
cl::Hidden, cl::init(false));
168
169
static cl::opt<std::string>
170
- MemprofDefaultOptions("memprof-default-options",
171
- cl::desc("The default memprof options"), cl::Hidden,
172
- cl::init(""));
+ MemprofRuntimeDefaultOptions("memprof-runtime-default-options",
+ cl::desc("The default memprof options"),
+ cl::Hidden, cl::init(""));
173
174
extern cl::opt<bool> MemProfReportHintedSizes;
175
@@ -554,7 +554,7 @@ void createMemprofHistogramFlagVar(Module &M) {
554
555
void createMemprofDefaultOptionsVar(Module &M) {
556
Constant *OptionsConst = ConstantDataArray::getString(
557
- M.getContext(), MemprofDefaultOptions, /*AddNull=*/true);
+ M.getContext(), MemprofRuntimeDefaultOptions, /*AddNull=*/true);
558
GlobalVariable *OptionsVar =
559
new GlobalVariable(M, OptionsConst->getType(), /*isConstant=*/true,
560
GlobalValue::WeakAnyLinkage, OptionsConst,
llvm/test/Instrumentation/HeapProfiler/memprof-options.ll
@@ -1,5 +1,5 @@
; RUN: opt < %s -mtriple=x86_64-unknown-linux -passes='function(memprof),memprof-module' -S | FileCheck %s --check-prefixes=CHECK,EMPTY
-; RUN: opt < %s -mtriple=x86_64-unknown-linux -passes='function(memprof),memprof-module' -S -memprof-default-options="verbose=1" | FileCheck %s --check-prefixes=CHECK,VERBOSE
+; RUN: opt < %s -mtriple=x86_64-unknown-linux -passes='function(memprof),memprof-module' -S -memprof-runtime-default-options="verbose=1" | FileCheck %s --check-prefixes=CHECK,VERBOSE
define i32 @main() {
entry:
0 commit comments