clang 19.0.0git
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"
13#include "llvm/Option/ArgList.h"
14
15using namespace clang::driver;
16using namespace clang::driver::tools;
17using namespace clang;
18using namespace llvm::opt;
19
20void ve::getVETargetFeatures(const Driver &D, const ArgList &Args,
21 std::vector<StringRef> &Features) {
22 if (Args.hasFlag(options::OPT_mvevpu, options::OPT_mno_vevpu, true))
23 Features.push_back("+vpu");
24 else
25 Features.push_back("-vpu");
26}
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:77
void getVETargetFeatures(const Driver &D, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)
The JSON file list parser is used to communicate input to InstallAPI.