LLVM 24.0.0git
CodeGenOptions.cpp
Go to the documentation of this file.
1//===--- CodeGenOptions.cpp - Shared codegen option handling --------------===//
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
14
15namespace llvm::driver {
16
41
43 driver::VectorLibrary Veclib) {
44 return new TargetLibraryInfoImpl(
45 TargetTriple, convertDriverVectorLibraryToVectorLibrary(Veclib));
46}
47
49 return isProfileCorrelationEnabled() ? "default_%m.proflite"
50 : "default_%m.profraw";
51}
52} // namespace llvm::driver
This file provides the interface for LLVM's PGO Instrumentation lowering pass.
Implementation of the target library information.
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
LLVM_ABI std::string getDefaultProfileGenName()
LLVM_ABI TargetLibraryInfoImpl * createTLII(const llvm::Triple &TargetTriple, VectorLibrary Veclib)
VectorLibrary
Vector library option used with -fveclib=.
LLVM_ABI llvm::VectorLibrary convertDriverVectorLibraryToVectorLibrary(llvm::driver::VectorLibrary VecLib)
LLVM_ABI bool isProfileCorrelationEnabled()
Return true if -profile-correlate is set.
VectorLibrary
List of known vector-functions libraries.