Path: blob/main/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/VE.cpp
35294 views
//===--- VE.cpp - Tools Implementations -------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "VE.h"9#include "clang/Driver/Driver.h"10#include "clang/Driver/DriverDiagnostic.h"11#include "clang/Driver/Options.h"12#include "llvm/Option/ArgList.h"1314using namespace clang::driver;15using namespace clang::driver::tools;16using namespace clang;17using namespace llvm::opt;1819void ve::getVETargetFeatures(const Driver &D, const ArgList &Args,20std::vector<StringRef> &Features) {21if (Args.hasFlag(options::OPT_mvevpu, options::OPT_mno_vevpu, true))22Features.push_back("+vpu");23else24Features.push_back("-vpu");25}262728