|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
387 if (!CPU.empty())
388 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
389
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
399 if (!OOpt.empty())
400 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=O") + OOpt));
401 }
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
404 CmdArgs.push_back(
405 Args.MakeArgString(Twine("-plugin-opt=dwo_dir=") +
406 Output.getFilename() + "_dwo"));
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
409 if (IsThinLTO)
410 CmdArgs.push_back("-plugin-opt=thinlto");
411
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
413 CmdArgs.push_back(
414 Args.MakeArgString("-plugin-opt=jobs=" + Twine(Parallelism)));
415
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
419 if (A->getOption().matches(options::OPT_glldb))
420 CmdArgs.push_back("-plugin-opt=-debugger-tune=lldb");
421 else if (A->getOption().matches(options::OPT_gsce))
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
421 else if (A->getOption().matches(options::OPT_gsce))
422 CmdArgs.push_back("-plugin-opt=-debugger-tune=sce");
423 else
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
423 else
424 CmdArgs.push_back("-plugin-opt=-debugger-tune=gdb");
425 }
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
431 options::OPT_fno_function_sections, UseSeparateSections)) {
432 CmdArgs.push_back("-plugin-opt=-function-sections");
433 }
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
436 UseSeparateSections)) {
437 CmdArgs.push_back("-plugin-opt=-data-sections");
438 }
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
445 CmdArgs.push_back(
446 Args.MakeArgString(Twine("-plugin-opt=sample-profile=") + FName));
447 }
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
458 if (CSPGOGenerateArg) {
459 CmdArgs.push_back(Args.MakeArgString("-plugin-opt=cs-profile-generate"));
460 if (CSPGOGenerateArg->getOption().matches(
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
464 CmdArgs.push_back(
465 Args.MakeArgString(Twine("-plugin-opt=cs-profile-path=") + Path));
466 } else
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
467 CmdArgs.push_back(
468 Args.MakeArgString("-plugin-opt=cs-profile-path=default_%m.profraw"));
469 } else if (ProfileUseArg) {
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
473 llvm::sys::path::append(Path, "default.profdata");
474 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=cs-profile-path=") +
475 Path));
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
481 /* Default */ ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER)) {
482 CmdArgs.push_back("-plugin-opt=new-pass-manager");
483 }
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
489 CmdArgs.push_back(
490 Args.MakeArgString(Twine("-plugin-opt=stats-file=") + StatsFile));
491
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
497 CmdArgs.push_back(
498 Args.MakeArgString(Twine("-plugin-opt=-target-abi=") + ABIName));
499 }
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
1485 CmdArgs.push_back(
1486 Args.MakeArgString(Twine("-plugin-opt=-mattr=") + Name));
1487 }
tools/clang/test/Driver/fuchsia.c
193 // RUN: | FileCheck %s -check-prefix=CHECK-LTO
194 // CHECK-LTO: "-plugin-opt=mcpu=cortex-a53"
195 // CHECK-LTO: "-plugin-opt=O3"
tools/clang/test/Driver/fuchsia.c
194 // CHECK-LTO: "-plugin-opt=mcpu=cortex-a53"
195 // CHECK-LTO: "-plugin-opt=O3"
196
tools/clang/test/Driver/fuchsia.c
200 // RUN: | FileCheck %s -check-prefix=CHECK-THINLTO
201 // CHECK-THINLTO: "-plugin-opt=mcpu=x86-64"
202 // CHECK-THINLTO: "-plugin-opt=thinlto"
tools/clang/test/Driver/fuchsia.c
201 // CHECK-THINLTO: "-plugin-opt=mcpu=x86-64"
202 // CHECK-THINLTO: "-plugin-opt=thinlto"
203 // CHECK-THINLTO: "-plugin-opt=jobs=8"
tools/clang/test/Driver/fuchsia.c
202 // CHECK-THINLTO: "-plugin-opt=thinlto"
203 // CHECK-THINLTO: "-plugin-opt=jobs=8"
204
tools/clang/test/Driver/gold-lto-new-pass-man.c
6 // RUN: | FileCheck %s
7 // CHECK: "-plugin-opt=new-pass-manager"
tools/clang/test/Driver/gold-lto-sections.c
6 // RUN: | FileCheck %s
7 // CHECK: "-plugin-opt=-function-sections"
8 // CHECK: "-plugin-opt=-data-sections"
tools/clang/test/Driver/gold-lto-sections.c
7 // CHECK: "-plugin-opt=-function-sections"
8 // CHECK: "-plugin-opt=-data-sections"
tools/clang/test/Driver/gold-lto.c
6 // CHECK-X86-64-BASIC: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
7 // CHECK-X86-64-BASIC: "-plugin-opt=O3"
8 // CHECK-X86-64-BASIC: "-plugin-opt=foo"
tools/clang/test/Driver/gold-lto.c
7 // CHECK-X86-64-BASIC: "-plugin-opt=O3"
8 // CHECK-X86-64-BASIC: "-plugin-opt=foo"
9 //
tools/clang/test/Driver/gold-lto.c
13 // CHECK-X86-64-COREI7: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
14 // CHECK-X86-64-COREI7: "-plugin-opt=mcpu=corei7"
15 // CHECK-X86-64-COREI7: "-plugin-opt=O3"
tools/clang/test/Driver/gold-lto.c
14 // CHECK-X86-64-COREI7: "-plugin-opt=mcpu=corei7"
15 // CHECK-X86-64-COREI7: "-plugin-opt=O3"
16 // CHECK-X86-64-COREI7: "-plugin-opt=foo"
tools/clang/test/Driver/gold-lto.c
15 // CHECK-X86-64-COREI7: "-plugin-opt=O3"
16 // CHECK-X86-64-COREI7: "-plugin-opt=foo"
17 //
tools/clang/test/Driver/gold-lto.c
21 // CHECK-ARM-V7A: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
22 // CHECK-ARM-V7A: "-plugin-opt=mcpu=generic"
23 // CHECK-ARM-V7A: "-plugin-opt=O0"
tools/clang/test/Driver/gold-lto.c
22 // CHECK-ARM-V7A: "-plugin-opt=mcpu=generic"
23 // CHECK-ARM-V7A: "-plugin-opt=O0"
24 // CHECK-ARM-V7A: "-plugin-opt=foo"
tools/clang/test/Driver/gold-lto.c
23 // CHECK-ARM-V7A: "-plugin-opt=O0"
24 // CHECK-ARM-V7A: "-plugin-opt=foo"
25 //
tools/clang/test/Driver/gold-lto.c
33 // CHECK-RISCV-BAREMETAL: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
34 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+m"
35 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+f"
tools/clang/test/Driver/gold-lto.c
34 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+m"
35 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+f"
36 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+relax"
tools/clang/test/Driver/gold-lto.c
35 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+f"
36 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+relax"
37 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-target-abi=lp64f"
tools/clang/test/Driver/gold-lto.c
36 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-mattr=+relax"
37 // CHECK-RISCV-BAREMETAL: "-plugin-opt=-target-abi=lp64f"
38 //
tools/clang/test/Driver/gold-lto.c
42 // CHECK-RISCV-LINUX: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
43 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+m"
44 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+f"
tools/clang/test/Driver/gold-lto.c
43 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+m"
44 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+f"
45 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+relax"
tools/clang/test/Driver/gold-lto.c
44 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+f"
45 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+relax"
46 // CHECK-RISCV-LINUX: "-plugin-opt=-target-abi=lp64f"
tools/clang/test/Driver/gold-lto.c
45 // CHECK-RISCV-LINUX: "-plugin-opt=-mattr=+relax"
46 // CHECK-RISCV-LINUX: "-plugin-opt=-target-abi=lp64f"
tools/clang/test/Driver/lto-dwo.c
5 //
6 // CHECK-LINK-DWO-DIR-DEFAULT: "-plugin-opt=dwo_dir=a.out_dwo"
tools/clang/test/Driver/lto-jobs.c
5 //
6 // CHECK-LINK-THIN-JOBS-ACTION: "-plugin-opt=jobs=5"
7
tools/clang/test/Driver/lto.c
58 //
59 // CHECK-TUNING-LLDB: "-plugin-opt=-debugger-tune=lldb"
60 // CHECK-NO-TUNING-NOT: "-plugin-opt=-debugger-tune
tools/clang/test/Driver/lto.c
59 // CHECK-TUNING-LLDB: "-plugin-opt=-debugger-tune=lldb"
60 // CHECK-NO-TUNING-NOT: "-plugin-opt=-debugger-tune
tools/clang/test/Driver/lto.cu
78 //
79 // CHECK-TUNING-LLDB: "-plugin-opt=-debugger-tune=lldb"
80 // CHECK-NO-TUNING-NOT: "-plugin-opt=-debugger-tune
tools/clang/test/Driver/lto.cu
79 // CHECK-TUNING-LLDB: "-plugin-opt=-debugger-tune=lldb"
80 // CHECK-NO-TUNING-NOT: "-plugin-opt=-debugger-tune
tools/clang/test/Driver/save-stats.c
24 // CHECK-LTO: "-o" "obj/dir{{/|\\\\}}save-stats.exe"
25 // CHECK-LTO: "-plugin-opt=stats-file=save-stats.stats"
26
tools/clang/test/Driver/save-stats.c
27 // RUN: %clang -target x86_64-linux-unknown -save-stats=obj -flto -o obj/dir/save-stats.exe %s -### 2>&1 | FileCheck %s -check-prefix=CHECK-LTO-OBJ
28 // CHECK-LTO-OBJ: "-plugin-opt=stats-file=obj/dir{{/|\\\\}}save-stats.stats"
tools/clang/test/Driver/thinlto.c
22 // CHECK-LINK-THIN-ACTION: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
23 // CHECK-LINK-THIN-ACTION: "-plugin-opt=thinlto"
24
tools/clang/test/Driver/thinlto.c
29 // CHECK-LINK-FULL-ACTION: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
30 // CHECK-LINK-FULL-ACTION-NOT: "-plugin-opt=thinlto"
31
tools/clang/test/Driver/thinlto.c
36 // CHECK-LINK-NOLTO-ACTION-NOT: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
37 // CHECK-LINK-NOLTO-ACTION-NOT: "-plugin-opt=thinlto"
tools/clang/test/Driver/thinlto.cu
37 // CHECK-LINK-THIN-ACTION: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
38 // CHECK-LINK-THIN-ACTION: "-plugin-opt=thinlto"
39
tools/clang/test/Driver/thinlto.cu
45 // CHECK-LINK-FULL-ACTION: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
46 // CHECK-LINK-FULL-ACTION-NOT: "-plugin-opt=thinlto"
47
tools/clang/test/Driver/thinlto.cu
53 // CHECK-LINK-NOLTO-ACTION-NOT: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
54 // CHECK-LINK-NOLTO-ACTION-NOT: "-plugin-opt=thinlto"
tools/lld/ELF/DriverUtils.cpp
102 StringRef s = args[i];
103 if ((s == "-plugin-opt" || s == "--plugin-opt") && i + 1 != e) {
104 v.push_back(saver.save(s + "=" + args[i + 1]).data());