| /external/angle/build/config/compiler/pgo/ |
| D | BUILD.gn | 2 # 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" ] 22 "-mllvm", 23 "-pgo-temporal-instrumentation", 30 ldflags = [ "-fprofile-generate" ] 40 # are not required to be defined when we're not actually using PGO. 51 _pgo_target = "win-arm64" [all …]
|
| D | pgo.gni | 2 # Use of this source code is governed by a BSD-style license that can be 14 # Specify the current PGO phase. 16 # 0 : Means that PGO is turned off. 18 # 2 : Used during the PGO (optimization) phase. 19 # PGO profiles are generated from `dcheck_always_on = false` builds. Mixing 25 # TODO(crbug.com/1336055): Update this now-outdated condition with regard 38 # Whether to enable temporal pgo or not (experimental).
|
| /external/cronet/build/config/compiler/pgo/ |
| D | BUILD.gn | 2 # 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 _pgo_target = "lacros-arm" [all …]
|
| /external/python/cpython3/Tools/msi/ |
| D | buildrelease.bat | 35 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 …]
|
| /external/autotest/client/profilers/pgo/ |
| D | pgo.py | 2 # 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)
|
| /external/toolchain-utils/pgo_tools_rust/ |
| D | pgo_rust.py | 3 # 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 …]
|
| /external/llvm/test/Transforms/PGOProfile/ |
| D | branch1.ll | 1 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s --check-prefix=GEN --check-prefix=GEN-COMDAT 2 ; RUN: opt < %s -mtriple=x86_64-apple-darwin -pgo-instr-gen -S | FileCheck %s --check-prefix=GEN --… 5 ; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN --check-prefix=GEN-COMDAT 6 ; RUN: opt < %s -mtriple=x86_64-apple-darwin -passes=pgo-instr-gen -S | FileCheck %s --check-prefix… 8 ; RUN: llvm-profdata merge %S/Inputs/branch1.proftext -o %t.profdata 9 ; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=… 12 ; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-… 14 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 15 target triple = "x86_64-unknown-linux-gnu" 16 ; GEN-DARWIN-LINKONCE: target triple = "x86_64-apple-darwin" [all …]
|
| D | branch2.ll | 1 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s --check-prefix=GEN 2 ; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN 3 ; RUN: llvm-profdata merge %S/Inputs/branch2.proftext -o %t.profdata 4 ; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=… 5 ; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-… 6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 7 target triple = "x86_64-unknown-linux-gnu" 10 ; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat 16 ; GEN-NOT: llvm.instrprof.increment 20 ; USE-SAME: !prof ![[BW_ENTRY:[0-9]+]] [all …]
|
| D | loop1.ll | 1 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s --check-prefix=GEN 2 ; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN 3 ; RUN: llvm-profdata merge %S/Inputs/loop1.proftext -o %t.profdata 4 ; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=… 5 ; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-… 6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 7 target triple = "x86_64-unknown-linux-gnu" 10 ; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat 16 ; GEN-NOT: call void @llvm.instrprof.increment 21 ; GEN-NOT: call void @llvm.instrprof.increment [all …]
|
| D | switch.ll | 1 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s --check-prefix=GEN 2 ; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --check-prefix=GEN 3 ; RUN: llvm-profdata merge %S/Inputs/switch.proftext -o %t.profdata 4 ; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=… 5 ; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-… 6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 7 target triple = "x86_64-unknown-linux-gnu" 10 ; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat 16 ; GEN-NOT: call void @llvm.instrprof.increment 23 ; USE-SAME: !prof ![[BW_SWITCH:[0-9]+]] [all …]
|
| D | diag_no_profile.ll | 1 ; RUN: not opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 2 ; RUN: not opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 4 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 5 target triple = "x86_64-unknown-linux-gnu"
|
| D | diag_no_funcprofdata.ll | 1 ; RUN: llvm-profdata merge %S/Inputs/diag.proftext -o %t.profdata 2 ; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s 3 ; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s 7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 8 target triple = "x86_64-unknown-linux-gnu"
|
| D | diag_mismatch.ll | 1 ; RUN: llvm-profdata merge %S/Inputs/diag.proftext -o %t.profdata 2 ; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s 3 ; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s 7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 8 target triple = "x86_64-unknown-linux-gnu"
|
| D | diag_FE_profile.ll | 1 ; RUN: llvm-profdata merge %S/Inputs/diag_FE.proftext -o %t.profdata 2 ; RUN: not opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s 3 ; RUN: not opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S 2>&1 | FileCheck %s 7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 8 target triple = "x86_64-unknown-linux-gnu"
|
| D | indirect_call_promotion.ll | 1 ; RUN: opt < %s -pgo-icall-prom -S | FileCheck %s --check-prefix=ICALL-PROM 2 ; RUN: opt < %s -passes=pgo-icall-prom -S | FileCheck %s --check-prefix=ICALL-PROM 3 …-pgo-icall-prom -S -pass-remarks=pgo-icall-prom -icp-count-threshold=0 -icp-percent-threshold=0 -i… 4 …-passes=pgo-icall-prom -S -pass-remarks=pgo-icall-prom -icp-count-threshold=0 -icp-percent-thresho… 5 ; PASS-REMARK: remark: <unknown>:0:0: Promote indirect call to func4 with count 1030 out of 1600 6 ; PASS-REMARK: remark: <unknown>:0:0: Promote indirect call to func2 with count 410 out of 570 7 ; PASS-REMARK: remark: <unknown>:0:0: Promote indirect call to func3 with count 150 out of 160 8 ; PASS-REMARK: remark: <unknown>:0:0: Promote indirect call to func1 with count 10 out of 10 10 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 11 target triple = "x86_64-unknown-linux-gnu" [all …]
|
| /external/toolchain-utils/pgo_tools/ |
| D | ensure_pgo_is_a_win.py | 3 # Use of this source code is governed by a BSD-style license that can be 6 """Reports how much performance win (in user time) PGO is for LLVM. 30 ) -> float: 31 """Returns the speedup attained by applying PGO. 34 Percentage performance difference. If LLVM with PGO takes 100 seconds 35 to run the benchmark, and LLVM without PGO takes 150, this will return 38 assert default_profile.user_time != 0, "pgo has a user time of 0?" 54 "--minimum-speedup", 57 If the win of PGO is less than this, fail. Specified as an integer 58 (--minimum-speedup=1.2 means speedup must be at least 1.2x). [all …]
|
| D | README.md | 3 This directory contains scripts used to generate and vet PGO profiles for LLVM. 5 If you're a Mage who wants to generate a new PGO profile for the llvm-next 8 backwards-compatible with our bootstrap chroot toolchains. This script takes a 9 few dozen minutes, and prints an "upload PGO profile" command at the end. 11 If you're a user who wants to generate a bespoke PGO profile for LLVM, 16 If you want to compare the rough performance of PGO profiles,
|
| D | generate_pgo_profile.py | 3 # 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 …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Transforms/Utils/ |
| D | MisExpect.h | 1 //===--- MisExpect.h - Check the use of llvm.expect with PGO data ---------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 28 /// checkBackendInstrumentation - compares PGO counters to the thresholds used 29 /// for llvm.expect and warns if the PGO counters are outside of the expected 40 /// checkFrontendInstrumentation - compares PGO counters to the thresholds used 41 /// for llvm.expect and warns if the PGO counters are outside of the expected 54 /// veryifyMisExpect - compares RealWeights to the thresholds used 55 /// for llvm.expect and warns if the PGO counters are outside of the expected [all …]
|
| /external/autotest/utils/frozen_chromite/lib/ |
| D | auto_update_util.py | 1 # -*- coding: utf-8 -*- 3 # Use of this source code is governed by a BSD-style license that can be 6 """This file contains util functions for the auto-update lib.""" 15 LSB_RELEASE = '/etc/lsb-release' 22 lsb_release_content: A string represents the content of lsb-release. 41 """Compare release version from lsb-release with cros-version label. 44 info and branch ID, e.g., lumpy-release/R43-6809.0.0. 45 release_version is retrieved from lsb-release. 50 1. trybot non-release build (paladin, pre-cq or test-ap build). 51 build version: trybot-lumpy-paladin/R27-3837.0.0-b123 [all …]
|
| /external/llvm/docs/ |
| D | AdvancedBuilds.rst | 11 `CMake <http://www.cmake.org/>`_ is a cross-platform build-generator tool. CMake 25 The Clang CMake build system supports bootstrap (aka multi-stage) builds. At a 26 high level a multi-stage build is a chain of builds that pass data from one 30 In a simple two-stage bootstrap build, we build clang using the system compiler, 31 then use that just-built clang to build clang again. In CMake this simplest form 35 .. code-block:: console 37 $ cmake -G Ninja -DCLANG_ENABLE_BOOTSTRAP=On <path to source> 47 general a stage*n* build is built using the output from stage*n-1*. 53 bootstrapping scenario. Apple Clang is built using a 2-stage build. 55 The stage1 compiler is a host-only compiler with some options set. The stage1 [all …]
|
| /external/python/cpython2/PCbuild/ |
| D | build.bat | 19 echo. -h Display this help message 20 echo. -r Target Rebuild instead of Build 21 echo. -d Set the configuration to Debug 22 echo. -e Build external libraries fetched by get_externals.bat 25 echo. -m Enable parallel build 26 echo. -M Disable parallel build (disabled by default) 27 echo. -v Increased output messages 28 echo. -k Attempt to kill any running Pythons before building (usually done 30 echo. --pgo Build with Profile-Guided Optimization. This flag 31 echo. overrides -c and -d [all …]
|
| /external/clang/lib/CodeGen/ |
| D | CodeGenPGO.cpp | 1 //===--- 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 …]
|
| /external/python/cpython2/PC/VS8.0/ |
| D | build_pgo.bat | 2 rem A batch program to build PGO (Profile guided optimization) by first 12 set job1=..\..\tools\pybench\pybench.py -n 1 -C 1 --with-gc 23 if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts 24 if "%1"=="-2" (set job=%job2%) & (set clrpath=%path2%) & shift & goto CheckOpts 26 set PGI=%platf%-pgi 27 set PGO=%platf%-pgo variable 31 call build -p %platf% -c PGInstrument 39 if exist %PGO% del /s /q %PGO% 40 call build -p %platf% -c PGUpdate
|
| /external/python/cpython2/PC/VS9.0/ |
| D | build_pgo.bat | 2 rem A batch program to build PGO (Profile guided optimization) by first 12 set job1=..\..\tools\pybench\pybench.py -n 1 -C 1 --with-gc 23 if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts 24 if "%1"=="-2" (set job=%job2%) & (set clrpath=%path2%) & shift & goto CheckOpts 26 set PGI=%platf%-pgi 27 set PGO=%platf%-pgo variable 31 call build -p %platf% -c PGInstrument 39 if exist %PGO% del /s /q %PGO% 40 call build -p %platf% -c PGUpdate
|