Coverage Report

Created: 2023-09-30 09:22

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Driver/ToolChains/Arch/VE.cpp
Line
Count
Source
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/Driver/DriverDiagnostic.h"
12
#include "clang/Driver/Options.h"
13
#include "llvm/Option/ArgList.h"
14
15
using namespace clang::driver;
16
using namespace clang::driver::tools;
17
using namespace clang;
18
using namespace llvm::opt;
19
20
void ve::getVETargetFeatures(const Driver &D, const ArgList &Args,
21
4
                             std::vector<StringRef> &Features) {
22
4
  if (Args.hasFlag(options::OPT_mvevpu, options::OPT_mno_vevpu, true))
23
3
    Features.push_back("+vpu");
24
1
  else
25
1
    Features.push_back("-vpu");
26
4
}