LLVM 22.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
13
14namespace llvm {
18} // namespace llvm
19
20namespace llvm::driver {
21
23 driver::VectorLibrary Veclib) {
24 TargetLibraryInfoImpl *TLII = new TargetLibraryInfoImpl(TargetTriple);
25
27 switch (Veclib) {
30 TargetTriple);
31 break;
34 TargetTriple);
35 break;
38 TargetTriple);
39 break;
42 TargetTriple);
43 break;
46 TargetTriple);
47 break;
51 break;
54 TargetTriple);
55 break;
58 TargetTriple);
59 break;
60 default:
61 break;
62 }
63 return TLII;
64}
65
69 ? "default_%m.proflite"
70 : "default_%m.profraw";
71}
72} // namespace llvm::driver
Implementation of the target library information.
LLVM_ABI void addVectorizableFunctionsFromVecLib(enum VectorLibrary VecLib, const llvm::Triple &TargetTriple)
Calls addVectorizableFunctions with a known preset of functions for the given vector library.
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:47
LLVM_ABI std::string getDefaultProfileGenName()
LLVM_ABI TargetLibraryInfoImpl * createTLII(const llvm::Triple &TargetTriple, VectorLibrary Veclib)
VectorLibrary
Vector library option used with -fveclib=.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
LLVM_ABI cl::opt< bool > DebugInfoCorrelate
llvm::cl::opt< llvm::InstrProfCorrelator::ProfCorrelatorKind > ProfileCorrelate