LLVM
20.0.0git
lib
Target
CSKY
MCTargetDesc
CSKYBaseInfo.h
Go to the documentation of this file.
1
//===-- CSKYBaseInfo.h - Top level definitions for CSKY ---*- 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 helper functions and enum definitions for
10
// the CSKY target useful for the compiler back-end and the MC libraries.
11
// As such, it deliberately does not include references to LLVM core
12
// code gen types, passes, etc..
13
//
14
//===----------------------------------------------------------------------===//
15
16
#ifndef LLVM_LIB_TARGET_CSKY_MCTARGETDESC_CSKYBASEINFO_H
17
#define LLVM_LIB_TARGET_CSKY_MCTARGETDESC_CSKYBASEINFO_H
18
19
#include "
MCTargetDesc/CSKYMCTargetDesc.h
"
20
#include "
llvm/MC/MCInstrDesc.h
"
21
22
namespace
llvm
{
23
24
// CSKYII - This namespace holds all of the target specific flags that
25
// instruction info tracks. All definitions must match CSKYInstrFormats.td.
26
namespace
CSKYII {
27
28
enum
AddrMode
{
29
AddrModeNone
= 0,
30
AddrMode32B
= 1,
// ld32.b, ld32.bs, st32.b, st32.bs, +4kb
31
AddrMode32H
= 2,
// ld32.h, ld32.hs, st32.h, st32.hs, +8kb
32
AddrMode32WD
= 3,
// ld32.w, st32.w, ld32.d, st32.d, +16kb
33
AddrMode16B
= 4,
// ld16.b, +32b
34
AddrMode16H
= 5,
// ld16.h, +64b
35
AddrMode16W
= 6,
// ld16.w, +128b or +1kb
36
AddrMode32SDF
= 7,
// flds, fldd, +1kb
37
};
38
39
// CSKY Specific MachineOperand Flags.
40
enum
TOF
{
41
MO_None
= 0,
42
MO_ADDR32
,
43
MO_GOT32
,
44
MO_GOTOFF
,
45
MO_PLT32
,
46
MO_ADDR_HI16
,
47
MO_ADDR_LO16
,
48
49
// Used to differentiate between target-specific "direct" flags and "bitmask"
50
// flags. A machine operand can only have one "direct" flag, but can have
51
// multiple "bitmask" flags.
52
MO_DIRECT_FLAG_MASK
= 15
53
};
54
55
enum
{
56
AddrModeMask
= 0x1f,
57
};
58
59
}
// namespace CSKYII
60
61
namespace
CSKYOp {
62
enum
OperandType
:
unsigned
{
63
OPERAND_BARESYMBOL
=
MCOI::OPERAND_FIRST_TARGET
,
64
OPERAND_CONSTPOOL
65
};
66
}
// namespace CSKYOp
67
68
}
// namespace llvm
69
70
#endif
// LLVM_LIB_TARGET_CSKY_MCTARGETDESC_CSKYBASEINFO_H
CSKYMCTargetDesc.h
MCInstrDesc.h
llvm::CSKYII::TOF
TOF
Definition:
CSKYBaseInfo.h:40
llvm::CSKYII::MO_ADDR_HI16
@ MO_ADDR_HI16
Definition:
CSKYBaseInfo.h:46
llvm::CSKYII::MO_None
@ MO_None
Definition:
CSKYBaseInfo.h:41
llvm::CSKYII::MO_GOTOFF
@ MO_GOTOFF
Definition:
CSKYBaseInfo.h:44
llvm::CSKYII::MO_DIRECT_FLAG_MASK
@ MO_DIRECT_FLAG_MASK
Definition:
CSKYBaseInfo.h:52
llvm::CSKYII::MO_ADDR32
@ MO_ADDR32
Definition:
CSKYBaseInfo.h:42
llvm::CSKYII::MO_PLT32
@ MO_PLT32
Definition:
CSKYBaseInfo.h:45
llvm::CSKYII::MO_ADDR_LO16
@ MO_ADDR_LO16
Definition:
CSKYBaseInfo.h:47
llvm::CSKYII::MO_GOT32
@ MO_GOT32
Definition:
CSKYBaseInfo.h:43
llvm::CSKYII::AddrMode
AddrMode
Definition:
CSKYBaseInfo.h:28
llvm::CSKYII::AddrModeNone
@ AddrModeNone
Definition:
CSKYBaseInfo.h:29
llvm::CSKYII::AddrMode32WD
@ AddrMode32WD
Definition:
CSKYBaseInfo.h:32
llvm::CSKYII::AddrMode32H
@ AddrMode32H
Definition:
CSKYBaseInfo.h:31
llvm::CSKYII::AddrMode32SDF
@ AddrMode32SDF
Definition:
CSKYBaseInfo.h:36
llvm::CSKYII::AddrMode16W
@ AddrMode16W
Definition:
CSKYBaseInfo.h:35
llvm::CSKYII::AddrMode16B
@ AddrMode16B
Definition:
CSKYBaseInfo.h:33
llvm::CSKYII::AddrMode32B
@ AddrMode32B
Definition:
CSKYBaseInfo.h:30
llvm::CSKYII::AddrMode16H
@ AddrMode16H
Definition:
CSKYBaseInfo.h:34
llvm::CSKYII::AddrModeMask
@ AddrModeMask
Definition:
CSKYBaseInfo.h:56
llvm::CSKYOp::OperandType
OperandType
Definition:
CSKYBaseInfo.h:62
llvm::CSKYOp::OPERAND_CONSTPOOL
@ OPERAND_CONSTPOOL
Definition:
CSKYBaseInfo.h:64
llvm::CSKYOp::OPERAND_BARESYMBOL
@ OPERAND_BARESYMBOL
Definition:
CSKYBaseInfo.h:63
llvm::MCOI::OPERAND_FIRST_TARGET
@ OPERAND_FIRST_TARGET
Definition:
MCInstrDesc.h:78
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Sun Dec 22 2024 01:10:45 for LLVM by
1.9.6