LLVM 20.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
12
13namespace llvm::driver {
14
16 driver::VectorLibrary Veclib) {
17 TargetLibraryInfoImpl *TLII = new TargetLibraryInfoImpl(TargetTriple);
18
20 switch (Veclib) {
23 TargetTriple);
24 break;
27 TargetTriple);
28 break;
31 TargetTriple);
32 break;
35 TargetTriple);
36 break;
39 TargetTriple);
40 break;
44 break;
47 TargetTriple);
48 break;
51 TargetTriple);
52 break;
53 default:
54 break;
55 }
56 return TLII;
57}
58
59} // namespace llvm::driver
Implementation of the target library information.
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:44
VectorLibrary
Vector library option used with -fveclib=.
TargetLibraryInfoImpl * createTLII(llvm::Triple &TargetTriple, VectorLibrary Veclib)