LLVM 19.0.0git
LoongArchBaseInfo.h
Go to the documentation of this file.
1//=- LoongArchBaseInfo.h - Top level definitions for LoongArch MC -*- 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// This file contains small standalone enum definitions and helper function
10// definitions for the LoongArch target useful for the compiler back-end and the
11// MC libraries.
12//
13//===----------------------------------------------------------------------===//
14#ifndef LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHBASEINFO_H
15#define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHBASEINFO_H
16
18#include "llvm/ADT/StringRef.h"
20#include "llvm/MC/MCInstrDesc.h"
22
23namespace llvm {
24
25// This namespace holds all of the target specific flags that instruction info
26// tracks.
27namespace LoongArchII {
28enum {
51 // TODO: Add more flags.
52};
53} // end namespace LoongArchII
54
55namespace LoongArchABI {
56enum ABI {
64};
65
66ABI computeTargetABI(const Triple &TT, StringRef ABIName);
68
69// Returns the register used to hold the stack pointer after realignment.
71} // end namespace LoongArchABI
72
73} // end namespace llvm
74
75#endif // LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHBASEINFO_H
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
Wrapper class representing physical registers. Should be passed by value.
Definition: MCRegister.h:33
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
ABI computeTargetABI(const Triple &TT, StringRef ABIName)
ABI getTargetABI(StringRef ABIName)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18