12 #include "llvm/Option/ArgList.h"
14 using namespace clang::driver;
15 using namespace clang::driver::tools;
16 using namespace clang;
17 using namespace llvm::opt;
20 if (
const Arg *A = Args.getLastArg(clang::driver::options::OPT_march_EQ))
26 std::vector<llvm::StringRef> &Features) {
28 if (Arg *A = Args.getLastArg(options::OPT_mhtm, options::OPT_mno_htm)) {
29 if (A->getOption().matches(options::OPT_mhtm))
30 Features.push_back(
"+transactional-execution");
32 Features.push_back(
"-transactional-execution");
35 if (Arg *A = Args.getLastArg(options::OPT_mvx, options::OPT_mno_vx)) {
36 if (A->getOption().matches(options::OPT_mvx))
37 Features.push_back(
"+vector");
39 Features.push_back(
"-vector");