Home
last modified time | relevance | path

Searched +full:- +full:- +full:pgo (Results 1 – 25 of 1094) sorted by relevance

12345678910>>...44

/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/testdata/script/
Dbuild_pgo_auto.txt1 # Test go build -pgo=auto flag.
9 # use default.pgo for a single main package
10 go build -n -pgo=auto -o a1.exe ./a/a1
11 stderr 'preprofile.*-i.*default\.pgo'
12 stderr 'compile.*-pgoprofile=.*a1.go'
14 # check that pgo applied to dependencies
15 stderr 'compile.*-p test/dep.*-pgoprofile=.*'
17 # check that pgo appears in build info
18 # N.B. we can't start the stdout check with -pgo because the script assumes that
19 # if the first arg starts with - it is a grep flag.
[all …]
Dbuild_pgo_auto_multi.txt1 # Test go build -pgo=auto flag with multiple main packages.
3 go install -a -n -pgo=auto ./a ./b ./nopgo
5 # a/default.pgo and b/default.pgo are both preprocessed
6 stderr 'preprofile.*-i.*a(/|\\\\)default\.pgo'
7 stderr 'preprofile.*-i.*b(/|\\\\)default\.pgo'
9 # a and b built once each with PGO.
13 stderr -count=1 'compile.*-pgoprofile=.*a(/|\\\\)a\.go'
14 stderr -count=1 'compile.*-pgoprofile=.*b(/|\\\\)b\.go'
16 # nopgo should be built without PGO.
17 ! stderr 'compile.*-pgoprofile=.*nopgo(/|\\\\)nopgo\.go'
[all …]
Dbuild_pgo.txt1 # Test go build -pgo flag.
10 # build without PGO
13 # build with PGO, should trigger rebuild
15 go build -x -pgo=prof -o triv.exe triv.go
16 stderr 'preprofile.*-i.*prof'
17 stderr 'compile.*-pgoprofile=.*triv.go'
19 # check that PGO appears in build info
20 # N.B. we can't start the stdout check with -pgo because the script assumes that
21 # if the first arg starts with - it is a grep flag.
22 go version -m triv.exe
[all …]
Dbuild_cache_pgo.txt7 # Building trivial non-main package should run preprofile the first time.
8 go build -x -pgo=default.pgo lib.go
9 stderr 'preprofile.*default\.pgo'
12 go build -x -pgo=default.pgo lib.go
13 ! stderr 'preprofile.*default\.pgo'
15 # ... unless we use -a.
16 go build -a -x -pgo=default.pgo lib.go
17 stderr 'preprofile.*default\.pgo'
25 go build -x -pgo=default.pgo lib2.go
26 ! stderr 'preprofile.*default\.pgo'
[all …]
/aosp_15_r20/toolchain/pgo-profiles/sampling/
H A Dafdo_profiles.mk5 AFDO_PROFILES += keystore2://toolchain/pgo-profiles/sampling:keystore2 \
6 libbinder://toolchain/pgo-profiles/sampling:libbinder \
7 libbinder_ndk://toolchain/pgo-profiles/sampling:libbinder_ndk \
8 libgui://toolchain/pgo-profiles/sampling:libgui \
9 libhidlbase://toolchain/pgo-profiles/sampling:libhidlbase \
10 libhwui://toolchain/pgo-profiles/sampling:libhwui \
11 libjpeg://toolchain/pgo-profiles/sampling:libjpeg \
12 liblog://toolchain/pgo-profiles/sampling:liblog \
13 libsensorservice://toolchain/pgo-profiles/sampling:libsensorservice \
14 libui://toolchain/pgo-profiles/sampling:libui \
[all …]
/aosp_15_r20/external/cronet/build/config/compiler/pgo/
H A DBUILD.gn2 # Use of this source code is governed by a BSD-style license that can be
8 import("//build/config/compiler/pgo/pgo.gni")
12 # Configuration that enables PGO instrumentation.
17 # are not required to be defined when we're not actually using PGO.
19 cflags = [ "-fprofile-generate" ]
24 ldflags = [ "-fprofile-generate" ]
34 # are not required to be defined when we're not actually using PGO.
45 _pgo_target = "win-arm64"
53 _pgo_target = "mac-arm"
61 # We don't have the arm device to train arm pgo data. So Lacros arm
[all …]
/aosp_15_r20/external/python/cpython3/Tools/msi/
Dbuildrelease.bat35 set EXTERNALS=%D%..\..\externals\windows-installer\
42 set PGO=-m test -q --pgo variable
49 if "%1" EQU "-h" goto Help
50 if "%1" EQU "-c" (set CERTNAME=%~2) && shift && shift && goto CheckOpts
51 if "%1" EQU "--certificate" (set CERTNAME=%~2) && shift && shift && goto CheckOpts
52 if "%1" EQU "-o" (set OUTDIR=%~2) && shift && shift && goto CheckOpts
53 if "%1" EQU "--out" (set OUTDIR=%~2) && shift && shift && goto CheckOpts
54 if "%1" EQU "-D" (set SKIPDOC=1) && shift && goto CheckOpts
55 if "%1" EQU "--skip-doc" (set SKIPDOC=1) && shift && goto CheckOpts
56 if "%1" EQU "-B" (set SKIPBUILD=1) && shift && goto CheckOpts
[all …]
/aosp_15_r20/external/angle/build/config/compiler/pgo/
H A DBUILD.gn2 # Use of this source code is governed by a BSD-style license that can be
7 import("//build/config/compiler/pgo/pgo.gni")
11 # Configuration that enables PGO instrumentation.
16 # are not required to be defined when we're not actually using PGO.
18 cflags = [ "-fprofile-generate" ]
21 "-mllvm",
22 "-pgo-temporal-instrumentation",
29 ldflags = [ "-fprofile-generate" ]
39 # are not required to be defined when we're not actually using PGO.
50 _pgo_target = "win-arm64"
[all …]
/aosp_15_r20/external/toolchain-utils/pgo_tools_rust/
H A Dpgo_rust.py3 # Use of this source code is governed by a BSD-style license that can be
6 # pylint: disable=line-too-long
8 """Handle most aspects of creating and benchmarking PGO profiles for Rust.
13 gs://chromeos-localmirror/distfiles/rust-pgo-{rust_version}-frontend.profdata{s}.tz
15 gs://chromeos-localmirror/distfiles/rust-pgo-{rust_version}-llvm.profdata{s}.tz
22 you need to generate manifests for dev-lang/rust and dev-lang/rust-host before
25 variable SRC_URI in cros-rustc.eclass which refer to profdata files.
31 $ ./pgo_rust.py benchmark-pgo # benchmark with PGO
32 $ ./pgo_rust.py benchmark-nopgo # benchmark without PGO
33 $ ./pgo_rust.py upload-profdata # upload profdata to localmirror
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/compile/internal/pgoir/
Dirgraph.go2 // Use of this source code is governed by a BSD-style
6 // binary-visible relative line number. i.e., the line number as adjusted by
19 // - For files without //line directives there is no impact, as RelLine() ==
21 // - For functions entirely covered by the same //line directive (i.e., a
25 // - Functions containing //line directives may be impacted. As fake line
27 // should accept these and attempt to use them for best-effort matching, as
31 // - Functions containing //line directives may also contain duplicate lines,
39 // and failing PGO matching on these files is not too big of a loss.
41 // Package pgoir assosciates a PGO profile with the IR of the current package
51 "cmd/internal/pgo"
[all …]
/aosp_15_r20/external/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1 //===--- CodeGenPGO.cpp - PGO Instrumentation for LLVM CodeGen --*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
10 // Instrumentation-based profile-guided optimization
12 //===----------------------------------------------------------------------===//
26 "enable-value-profiling", llvm::cl::ZeroOrMore,
37 PGOReader ? PGOReader->getVersion() : llvm::IndexedInstrProf::Version); in setFuncName()
45 setFuncName(Fn->getName(), Fn->getLinkage()); in setFuncName()
51 /// \brief Stable hasher for PGO region counters.
56 /// profiles -- i.e., don't do it.
112 /// A RecursiveASTVisitor that fills a map of statements to PGO counters.
[all …]
/aosp_15_r20/external/python/cpython2/Lib/test/
Dregrtest.py6 python -m test.regrtest [options] [test_name1 [test_name2 ...]]
12 them in alphabetical order (but see -M and -u, below, for exceptions).
17 python -E -tt -Wd -3 -m test.regrtest [options] [test_name1 ...]
22 -h/--help -- print this text and exit
26 -v/--verbose -- run tests in verbose mode with output to stdout
27 -w/--verbose2 -- re-run failed tests in verbose mode
28 -W/--verbose3 -- re-run failed tests in verbose mode immediately
29 -q/--quiet -- no output unless one or more tests fail
30 -S/--slowest -- print the slowest 10 tests
31 --header -- print header with interpreter info
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/compile/internal/test/
Dpgo_inl_test.go2 // Use of this source code is governed by a BSD-style
25 const pkg = "example.com/pgo/inline"
36 args := []string{"test", "-c", "-o", exe, "-gcflags=" + gcflag}
53 const pkg = "example.com/pgo/inline"
61 // The calling edge main->A is hot and the cost of A is large
64 // The calling edge BenchmarkA" -> benchmarkB is cold and the
92 …gcflag := fmt.Sprintf("-m -m -pgoprofile=%s -d=pgoinlinebudget=160,pgoinlinecdfthreshold=90", prof…
148 // TestPGOIntendedInlining tests that specific functions are inlined when PGO
155 srcDir := filepath.Join(wd, "testdata/pgo/inline")
169 // TestPGOPreprocessInlining tests that specific functions are inlined when PGO
[all …]
Dpgo_devirtualize_test.go2 // Use of this source code is governed by a BSD-style
25 // testPGODevirtualize tests that specific PGO devirtualize rewrites are performed.
30 const pkg = "example.com/pgo/devirtualize"
40 // Run the test without PGO to ensure that the test assertions are
41 // correct even in the non-optimized version.
45 t.Logf("Test without PGO:\n%s", b)
47 t.Fatalf("Test failed without PGO: %v", err)
52 gcflag := fmt.Sprintf("-gcflags=-m=2 -pgoprofile=%s -d=pgodebug=3", pprof)
54 …cmd = testenv.CleanCmdEnv(testenv.Command(t, testenv.GoToolPath(t), "test", "-o", out, gcflag, "."…
73 devirtualizedLine := regexp.MustCompile(`(.*): PGO devirtualizing \w+ call .* to (.*)`)
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/llvm/ProfileData/
DInstrProf.h1 //===- InstrProf.h - Instrumented profiling format support ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Instrumentation-based profiling data is generated by instrumented
10 // binaries through library functions in compiler-rt, and read by the clang
11 // frontend to feed PGO.
13 //===----------------------------------------------------------------------===//
65 return std::numeric_limits<uint64_t>::max() - 2; in getInstrMaxCountValue()
92 /// Return the name prefix of variables containing per-function control data.
108 /// of all function's PGO names.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/llvm/ProfileData/
DInstrProf.h1 //===- InstrProf.h - Instrumented profiling format support ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Instrumentation-based profiling data is generated by instrumented
10 // binaries through library functions in compiler-rt, and read by the clang
11 // frontend to feed PGO.
13 //===----------------------------------------------------------------------===//
65 return std::numeric_limits<uint64_t>::max() - 2; in getInstrMaxCountValue()
92 /// Return the name prefix of variables containing per-function control data.
108 /// of all function's PGO names.
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1 //===- PGOInstrumentation.cpp - MST-based PGO Instrumentation -------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements PGO instrumentation using a minimum spanning tree based
13 // Issue 3, pp 313-322
20 // The minimal spanning tree here is actually a maximum weight tree -- on-tree
48 //===----------------------------------------------------------------------===//
136 #define DEBUG_TYPE "pgo-instrumentation"
142 STATISTIC(NumOfPGOBB, "Number of basic-blocks.");
155 STATISTIC(NumOfCSPGOBB, "Number of basic-blocks in CSPGO.");
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/llvm/ProfileData/
DInstrProf.h1 //===- InstrProf.h - Instrumented profiling format support ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Instrumentation-based profiling data is generated by instrumented
10 // binaries through library functions in compiler-rt, and read by the clang
11 // frontend to feed PGO.
13 //===----------------------------------------------------------------------===//
65 return std::numeric_limits<uint64_t>::max() - 2; in getInstrMaxCountValue()
92 /// Return the name prefix of variables containing per-function control data.
108 /// of all function's PGO names.
[all …]
/aosp_15_r20/external/toolchain-utils/pgo_tools/
H A Dgenerate_pgo_profile.py3 # Use of this source code is governed by a BSD-style license that can be
6 """Generates a PGO profile for LLVM.
10 Note that this script has a few (perhaps surprising) side-effects:
39 HOST_TRIPLE = "x86_64-pc-linux-gnu"
44 "x86_64-cros-linux-gnu",
45 "armv7a-cros-linux-gnueabihf",
46 "aarch64-cros-linux-gnu",
49 # Set of all of the cross-* libraries we need.
51 f"cross-{triple}/{package}"
54 for package in ("glibc", "libcxx", "llvm-libunwind", "linux-headers")
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/ProfileData/
H A DInstrProf.h1 //===- InstrProf.h - Instrumented profiling format support ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Instrumentation-based profiling data is generated by instrumented
10 // binaries through library functions in compiler-rt, and read by the clang
11 // frontend to feed PGO.
13 //===----------------------------------------------------------------------===//
65 return std::numeric_limits<uint64_t>::max() - 2; in getInstrMaxCountValue()
92 /// Return the name prefix of variables containing per-function control data.
105 /// of all function's PGO names.
[all …]
/aosp_15_r20/external/llvm/include/llvm/ProfileData/
H A DInstrProf.h1 //===-- InstrProf.h - Instrumented profiling format support -----*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
10 // Instrumentation-based profiling data is generated by instrumented
11 // binaries through library functions in compiler-rt, and read by the clang
12 // frontend to feed PGO.
14 //===----------------------------------------------------------------------===//
54 /// Return the name of the data section containing per-function control
91 /// Return the name prefix of variables containing per-function control data.
108 /// of all function's PGO names.
121 /// of PGO name vars referenced by the coverage mapping. The owning
[all …]
/aosp_15_r20/external/autotest/client/profilers/pgo/
H A Dpgo.py2 # Use of this source code is governed by a BSD-style license that can be
6 This is a profiler class for copying Profile-Guided-Optimization (PGO) data
7 files back to the host. When Chrome is built with -fprofile-generate, it dumps
8 its PGO data in a directory that this test copies back to test.profdir.
10 The PGO data is found where the build happens in the chroot, which is hardcoded
24 class pgo(profiler.profiler): class
25 """The pgo profiler collects PGO data for Chrome."""
28 def initialize(self, source_dir='/tmp/pgo/chrome'):
42 tar = tarfile.open(name=os.path.join(test.profdir, 'pgo.tar.bz2'),
51 logging.error('PGO dir: %s not found', self._source_dir)
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
H A DInstrProf.h1 //===- InstrProf.h - Instrumented profiling format support ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Instrumentation-based profiling data is generated by instrumented
10 // binaries through library functions in compiler-rt, and read by the clang
11 // frontend to feed PGO.
13 //===----------------------------------------------------------------------===//
84 /// Return the name prefix of variables containing per-function control data.
97 /// of all function's PGO names.
110 /// of PGO name vars referenced by the coverage mapping. The owning
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1 //===- PGOInstrumentation.cpp - MST-based PGO Instrumentation -------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements PGO instrumentation using a minimum spanning tree based
13 // Issue 3, pp 313-322
20 // The minimal spanning tree here is actually a maximum weight tree -- on-tree
48 //===----------------------------------------------------------------------===//
127 #define DEBUG_TYPE "pgo-instrumentation"
133 STATISTIC(NumOfPGOBB, "Number of basic-blocks.");
145 STATISTIC(NumOfCSPGOBB, "Number of basic-blocks in CSPGO.");
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/llvm/ProfileData/
DInstrProf.h1 //===- InstrProf.h - Instrumented profiling format support ------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Instrumentation-based profiling data is generated by instrumented
10 // binaries through library functions in compiler-rt, and read by the clang
11 // frontend to feed PGO.
13 //===----------------------------------------------------------------------===//
67 return std::numeric_limits<uint64_t>::max() - 2; in getInstrMaxCountValue()
97 /// Return the name prefix of variables containing per-function control data.
113 /// of all function's PGO names.
[all …]

12345678910>>...44