Home
last modified time | relevance | path

Searched refs:llvm (Results 1 – 21 of 21) sorted by relevance

/Linux-v4.19/tools/perf/util/c++/
Dclang.cpp34 static std::unique_ptr<llvm::LLVMContext> LLVMCtx;
39 createCompilerInvocation(llvm::opt::ArgStringList CFlags, StringRef& Path, in createCompilerInvocation()
42 llvm::opt::ArgStringList CCArgs { in createCompilerInvocation()
67 static std::unique_ptr<llvm::Module>
68 getModuleFromSource(llvm::opt::ArgStringList CFlags, in getModuleFromSource()
90 return std::unique_ptr<llvm::Module>(nullptr); in getModuleFromSource()
95 std::unique_ptr<llvm::Module>
96 getModuleFromSource(llvm::opt::ArgStringList CFlags, in getModuleFromSource()
101 llvm::IntrusiveRefCntPtr<OverlayFileSystem> OverlayFS( in getModuleFromSource()
103 llvm::IntrusiveRefCntPtr<InMemoryFileSystem> MemFS( in getModuleFromSource()
[all …]
Dclang-test.cpp17 static std::unique_ptr<llvm::Module>
23 return std::unique_ptr<llvm::Module>(nullptr); in __test__clang_to_IR()
28 std::unique_ptr<llvm::Module> M = in __test__clang_to_IR()
43 for (llvm::Function& F : *M) in test__clang_to_IR()
Dclang.h13 using namespace llvm; variable
23 std::unique_ptr<llvm::SmallVectorImpl<char>>
24 getBPFObjectFromModule(llvm::Module *Module);
/Linux-v4.19/tools/perf/tests/
DBuild35 perf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o llvm-src-prologue.o llvm-src-relocation.o
53 $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
55 $(Q)echo '#include <tests/llvm.h>' > $@
60 $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
62 $(Q)echo '#include <tests/llvm.h>' > $@
67 $(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
69 $(Q)echo '#include <tests/llvm.h>' > $@
74 $(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build
76 $(Q)echo '#include <tests/llvm.h>' > $@
D.gitignore1 llvm-src-base.c
2 llvm-src-kbuild.c
3 llvm-src-prologue.c
4 llvm-src-relocation.c
/Linux-v4.19/samples/bpf/
DREADME.rst12 * llvm >= version 3.7.1
48 By default llvm will build all non-experimental backends including bpf.
56 $ git clone http://llvm.org/git/llvm.git
57 $ cd llvm/tools
58 $ git clone --depth 1 http://llvm.org/git/clang.git
66 make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang
76 make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang
DMakefile198 LLVM_OBJCOPY ?= llvm-objcopy
275 -O2 -emit-llvm -c $< -o -| $(LLC) -march=bpf $(LLC_FLAGS) -filetype=obj -o $@
/Linux-v4.19/tools/build/feature/
Dtest-llvm.cpp11 llvm::errs() << "Hello World!\n"; in main()
12 llvm::llvm_shutdown(); in main()
DMakefile60 test-llvm.bin \
61 test-llvm-version.bin
68 LLVM_CONFIG ?= llvm-config
262 $(OUTPUT)test-llvm.bin:
270 $(OUTPUT)test-llvm-version.bin:
Dtest-clang.cpp20 llvm::llvm_shutdown(); in main()
/Linux-v4.19/Documentation/process/
Dclang-format.rst35 http://releases.llvm.org/download.html
39 https://clang.llvm.org/docs/ClangFormat.html
41 https://clang.llvm.org/docs/ClangFormatStyleOptions.html
66 https://clang.llvm.org/docs/ClangFormat.html#script-for-patch-reformatting
102 https://clang.llvm.org/docs/ClangFormat.html
/Linux-v4.19/tools/build/
DMakefile.feature88 llvm \
89 llvm-version \
/Linux-v4.19/tools/testing/selftests/bpf/
DMakefile84 LLVM_OBJCOPY ?= llvm-objcopy
129 -O2 -target bpf -emit-llvm -c $< -o - | \
/Linux-v4.19/
D.clang-format8 # https://clang.llvm.org/docs/ClangFormat.html
9 # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
/Linux-v4.19/tools/perf/
DMakefile.config861 msg := $(warning No g++ found, disable clang and llvm support. Please install g++)
863 $(call feature_check,llvm)
864 $(call feature_check,llvm-version)
865 ifneq ($(feature-llvm), 1)
866 …le libLLVM found, disabling builtin clang and LLVM support. Please install llvm-dev(el) (>= 3.9.0))
879 ifneq ($(feature-llvm-version),1)
DMakefile.perf156 LLVM_CONFIG ?= llvm-config
861 $(OUTPUT)tests/llvm-src-{base,kbuild,prologue,relocation}.c \
/Linux-v4.19/Documentation/bpf/
Dbpf_devel_QA.rst471 LLVM (http://llvm.org/):
489 All LLVM releases can be found at: http://releases.llvm.org/
497 $ git clone http://llvm.org/git/llvm.git
498 $ cd llvm/tools
499 $ git clone --depth 1 http://llvm.org/git/clang.git
532 https://bugs.llvm.org/buglist.cgi?quicksearch=bpf
Dbpf_design_QA.rst120 A: Because it would be rarely used. llvm errors in such case and
/Linux-v4.19/tools/perf/util/
DBuild15 libperf-y += llvm-utils.o
/Linux-v4.19/scripts/
DMakefile.build159 cmd_cc_ll_c = $(CC) $(c_flags) -emit-llvm -S -o $@ $<
/Linux-v4.19/tools/perf/Documentation/
Dperf-record.txt478 'perf record --dry-run -e' can act as a BPF script compiler if llvm.dump-obj