clang
24.0.0git
lib
Driver
ToolChains
Arch
VE.cpp
Go to the documentation of this file.
1
//===--- VE.cpp - Tools Implementations -------------------------*- 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
9
#include "
VE.h
"
10
#include "
clang/Driver/Driver.h
"
11
#include "
clang/Options/Options.h
"
12
#include "llvm/Option/ArgList.h"
13
14
using namespace
clang::driver
;
15
using namespace
clang::driver::tools
;
16
using namespace
clang
;
17
using namespace
llvm::opt
;
18
19
void
ve::getVETargetFeatures
(
const
Driver
&D,
const
ArgList &Args,
20
std::vector<StringRef> &Features) {
21
if
(Args.hasFlag(options::OPT_mvevpu, options::OPT_mno_vevpu,
true
))
22
Features.push_back(
"+vpu"
);
23
else
24
Features.push_back(
"-vpu"
);
25
}
VE.h
Driver.h
Options.h
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition
Driver.h:96
clang::driver::tools::ve::getVETargetFeatures
void getVETargetFeatures(const Driver &D, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)
clang::driver::tools
Definition
CommonArgs.h:25
clang::driver
Definition
Action.h:32
clang
Top level wrappers for InstallAPI frontend operations.
Definition
CalledOnceCheck.h:17
llvm::opt
Definition
DiagnosticOptions.h:18
Generated on
for clang by
1.14.0