clang 20.0.0git
LoongArch.h
Go to the documentation of this file.
1//===--- LoongArch.h - LoongArch-specific Tool Helpers ----------*- 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#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_LOONGARCH_H
10#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_LOONGARCH_H
11
12#include "clang/Driver/Driver.h"
13#include "llvm/ADT/StringRef.h"
14#include "llvm/Option/Option.h"
15
16namespace clang {
17namespace driver {
18namespace tools {
19namespace loongarch {
20void getLoongArchTargetFeatures(const Driver &D, const llvm::Triple &Triple,
21 const llvm::opt::ArgList &Args,
22 std::vector<llvm::StringRef> &Features);
23
24StringRef getLoongArchABI(const Driver &D, const llvm::opt::ArgList &Args,
25 const llvm::Triple &Triple);
26
27std::string postProcessTargetCPUString(const std::string &CPU,
28 const llvm::Triple &Triple);
29
30std::string getLoongArchTargetCPU(const llvm::opt::ArgList &Args,
31 const llvm::Triple &Triple);
32} // end namespace loongarch
33} // end namespace tools
34} // end namespace driver
35} // end namespace clang
36
37#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_LOONGARCH_H
const Decl * D
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:77
StringRef getLoongArchABI(const Driver &D, const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
std::string getLoongArchTargetCPU(const llvm::opt::ArgList &Args, const llvm::Triple &Triple)
Definition: LoongArch.cpp:267
std::string postProcessTargetCPUString(const std::string &CPU, const llvm::Triple &Triple)
Definition: LoongArch.cpp:254
void getLoongArchTargetFeatures(const Driver &D, const llvm::Triple &Triple, const llvm::opt::ArgList &Args, std::vector< llvm::StringRef > &Features)
The JSON file list parser is used to communicate input to InstallAPI.