LLVM 22.0.0git
PGOOptions.h
Go to the documentation of this file.
1//===------ PGOOptions.h -- PGO option tunables ----------------*- C++ -*--===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8/// \file
9///
10/// Define option tunables for PGO.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_SUPPORT_PGOOPTIONS_H
15#define LLVM_SUPPORT_PGOOPTIONS_H
16
19#include "llvm/Support/Error.h"
20
21namespace llvm {
22
23namespace vfs {
24class FileSystem;
25} // namespace vfs
26
27/// A struct capturing PGO tunables.
58} // namespace llvm
59
60#endif
#define LLVM_ABI
Definition Compiler.h:213
This file defines the RefCountedBase, ThreadSafeRefCountedBase, and IntrusiveRefCntPtr classes.
A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCount...
The virtual file system interface.
This is an optimization pass for GlobalISel generic memory operations.
bool DebugInfoForProfiling
Definition PGOOptions.h:53
std::string MemoryProfile
Definition PGOOptions.h:49
std::string ProfileFile
Definition PGOOptions.h:46
std::string CSProfileGenFile
Definition PGOOptions.h:47
PGOAction Action
Definition PGOOptions.h:50
ColdFuncOpt ColdOptType
Definition PGOOptions.h:52
LLVM_ABI PGOOptions & operator=(const PGOOptions &)
LLVM_ABI PGOOptions(const PGOOptions &)
IntrusiveRefCntPtr< vfs::FileSystem > FS
Definition PGOOptions.h:56
LLVM_ABI PGOOptions(std::string ProfileFile, std::string CSProfileGenFile, std::string ProfileRemappingFile, std::string MemoryProfile, IntrusiveRefCntPtr< vfs::FileSystem > FS, PGOAction Action=NoAction, CSPGOAction CSAction=NoCSAction, ColdFuncOpt ColdType=ColdFuncOpt::Default, bool DebugInfoForProfiling=false, bool PseudoProbeForProfiling=false, bool AtomicCounterUpdate=false)
std::string ProfileRemappingFile
Definition PGOOptions.h:48
CSPGOAction CSAction
Definition PGOOptions.h:51
bool AtomicCounterUpdate
Definition PGOOptions.h:55
bool PseudoProbeForProfiling
Definition PGOOptions.h:54
LLVM_ABI ~PGOOptions()