LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Enumerations | Functions | Variables
llvm::SystemZ Namespace Reference

Enumerations

enum  FixupKind {
  FK_390_PC16DBL = FirstTargetFixupKind, FK_390_PC32DBL, FK_390_PLT16DBL, FK_390_PLT32DBL,
  LastTargetFixupKind, NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
}
 

Functions

static bool isImmLL (uint64_t Val)
 
static bool isImmLH (uint64_t Val)
 
static bool isImmHL (uint64_t Val)
 
static bool isImmHH (uint64_t Val)
 
static bool isImmLF (uint64_t Val)
 
static bool isImmHF (uint64_t Val)
 
unsigned even128 (bool Is32bit)
 
unsigned odd128 (bool Is32bit)
 

Variables

const unsigned CCMASK_0 = 1 << 3
 
const unsigned CCMASK_1 = 1 << 2
 
const unsigned CCMASK_2 = 1 << 1
 
const unsigned CCMASK_3 = 1 << 0
 
const unsigned CCMASK_ANY = CCMASK_0 | CCMASK_1 | CCMASK_2 | CCMASK_3
 
const unsigned CCMASK_CMP_EQ = CCMASK_0
 
const unsigned CCMASK_CMP_LT = CCMASK_1
 
const unsigned CCMASK_CMP_GT = CCMASK_2
 
const unsigned CCMASK_CMP_NE = CCMASK_CMP_LT | CCMASK_CMP_GT
 
const unsigned CCMASK_CMP_LE = CCMASK_CMP_EQ | CCMASK_CMP_LT
 
const unsigned CCMASK_CMP_GE = CCMASK_CMP_EQ | CCMASK_CMP_GT
 
const unsigned CCMASK_CMP_UO = CCMASK_3
 
const unsigned CCMASK_CMP_O = CCMASK_ANY ^ CCMASK_CMP_UO
 
const unsigned CCMASK_ICMP = CCMASK_0 | CCMASK_1 | CCMASK_2
 
const unsigned CCMASK_FCMP = CCMASK_0 | CCMASK_1 | CCMASK_2 | CCMASK_3
 
const unsigned CCMASK_CS_EQ = CCMASK_0
 
const unsigned CCMASK_CS_NE = CCMASK_1
 
const unsigned CCMASK_CS = CCMASK_0 | CCMASK_1
 
const unsigned CCMASK_SRST_FOUND = CCMASK_1
 
const unsigned CCMASK_SRST_NOTFOUND = CCMASK_2
 
const unsigned CCMASK_SRST = CCMASK_1 | CCMASK_2
 
const unsigned CCMASK_TM_ALL_0 = CCMASK_0
 
const unsigned CCMASK_TM_MIXED_MSB_0 = CCMASK_1
 
const unsigned CCMASK_TM_MIXED_MSB_1 = CCMASK_2
 
const unsigned CCMASK_TM_ALL_1 = CCMASK_3
 
const unsigned CCMASK_TM_SOME_0 = CCMASK_TM_ALL_1 ^ CCMASK_ANY
 
const unsigned CCMASK_TM_SOME_1 = CCMASK_TM_ALL_0 ^ CCMASK_ANY
 
const unsigned CCMASK_TM_MSB_0 = CCMASK_0 | CCMASK_1
 
const unsigned CCMASK_TM_MSB_1 = CCMASK_2 | CCMASK_3
 
const unsigned CCMASK_TM = CCMASK_ANY
 
const unsigned IPM_CC = 28
 
const unsigned PFD_READ = 1
 
const unsigned PFD_WRITE = 2
 
const unsigned NumArgGPRs = 5
 
const unsigned ArgGPRs [NumArgGPRs]
 
const unsigned NumArgFPRs = 4
 
const unsigned ArgFPRs [NumArgFPRs]
 

Enumeration Type Documentation

Enumerator
FK_390_PC16DBL 
FK_390_PC32DBL 
FK_390_PLT16DBL 
FK_390_PLT32DBL 
LastTargetFixupKind 
NumTargetFixupKinds 

Definition at line 17 of file SystemZMCFixups.h.

Function Documentation

unsigned llvm::SystemZ::even128 ( bool  Is32bit)
inline

Definition at line 24 of file SystemZRegisterInfo.h.

Referenced by lowerGR128Binary().

static bool llvm::SystemZ::isImmHF ( uint64_t  Val)
inlinestatic

Definition at line 104 of file SystemZ.h.

static bool llvm::SystemZ::isImmHH ( uint64_t  Val)
inlinestatic

Definition at line 94 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

static bool llvm::SystemZ::isImmHL ( uint64_t  Val)
inlinestatic

Definition at line 89 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

static bool llvm::SystemZ::isImmLF ( uint64_t  Val)
inlinestatic

Definition at line 99 of file SystemZ.h.

static bool llvm::SystemZ::isImmLH ( uint64_t  Val)
inlinestatic

Definition at line 84 of file SystemZ.h.

Referenced by getTestUnderMaskCond(), and llvm::SystemZInstrInfo::loadImmediate().

static bool llvm::SystemZ::isImmLL ( uint64_t  Val)
inlinestatic

Definition at line 79 of file SystemZ.h.

Referenced by getTestUnderMaskCond(), and llvm::SystemZInstrInfo::loadImmediate().

unsigned llvm::SystemZ::odd128 ( bool  Is32bit)
inline

Definition at line 27 of file SystemZRegisterInfo.h.

Referenced by lowerGR128Binary().

Variable Documentation

const unsigned llvm::SystemZ::ArgFPRs
Initial value:
= {
SystemZ::F0D, SystemZ::F2D, SystemZ::F4D, SystemZ::F6D
}

Definition at line 19 of file SystemZCallingConv.cpp.

Referenced by llvm::SystemZTargetLowering::LowerFormalArguments().

const unsigned llvm::SystemZ::ArgGPRs
Initial value:
= {
SystemZ::R2D, SystemZ::R3D, SystemZ::R4D, SystemZ::R5D, SystemZ::R6D
}

Definition at line 15 of file SystemZCallingConv.cpp.

Referenced by llvm::SystemZFrameLowering::processFunctionBeforeCalleeSavedScan(), and llvm::SystemZFrameLowering::spillCalleeSavedRegisters().

const unsigned llvm::SystemZ::CCMASK_0 = 1 << 3

Definition at line 27 of file SystemZ.h.

Referenced by getIPMConversion().

const unsigned llvm::SystemZ::CCMASK_1 = 1 << 2

Definition at line 28 of file SystemZ.h.

Referenced by getIPMConversion().

const unsigned llvm::SystemZ::CCMASK_2 = 1 << 1

Definition at line 29 of file SystemZ.h.

Referenced by getIPMConversion().

const unsigned llvm::SystemZ::CCMASK_3 = 1 << 0

Definition at line 30 of file SystemZ.h.

Referenced by getIPMConversion().

const unsigned llvm::SystemZ::CCMASK_ANY = CCMASK_0 | CCMASK_1 | CCMASK_2 | CCMASK_3
const unsigned llvm::SystemZ::CCMASK_CMP_EQ = CCMASK_0

Definition at line 35 of file SystemZ.h.

Referenced by adjustSubwordCmp(), adjustZeroCmp(), emitCmp(), and getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_CMP_GE = CCMASK_CMP_EQ | CCMASK_CMP_GT
const unsigned llvm::SystemZ::CCMASK_CMP_GT = CCMASK_2

Definition at line 37 of file SystemZ.h.

Referenced by adjustSubwordCmp(), adjustZeroCmp(), emitCmp(), and getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_CMP_LE = CCMASK_CMP_EQ | CCMASK_CMP_LT
const unsigned llvm::SystemZ::CCMASK_CMP_LT = CCMASK_1

Definition at line 36 of file SystemZ.h.

Referenced by adjustSubwordCmp(), adjustZeroCmp(), emitCmp(), and getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_CMP_NE = CCMASK_CMP_LT | CCMASK_CMP_GT
const unsigned llvm::SystemZ::CCMASK_CMP_O = CCMASK_ANY ^ CCMASK_CMP_UO

Definition at line 44 of file SystemZ.h.

Referenced by CCMaskForCondCode().

const unsigned llvm::SystemZ::CCMASK_CMP_UO = CCMASK_3

Definition at line 43 of file SystemZ.h.

Referenced by CCMaskForCondCode(), and emitCmp().

const unsigned llvm::SystemZ::CCMASK_CS = CCMASK_0 | CCMASK_1

Definition at line 53 of file SystemZ.h.

const unsigned llvm::SystemZ::CCMASK_CS_EQ = CCMASK_0

Definition at line 51 of file SystemZ.h.

const unsigned llvm::SystemZ::CCMASK_CS_NE = CCMASK_1

Definition at line 52 of file SystemZ.h.

const unsigned llvm::SystemZ::CCMASK_FCMP = CCMASK_0 | CCMASK_1 | CCMASK_2 | CCMASK_3

Definition at line 48 of file SystemZ.h.

Referenced by emitCmp().

const unsigned llvm::SystemZ::CCMASK_ICMP = CCMASK_0 | CCMASK_1 | CCMASK_2

Definition at line 47 of file SystemZ.h.

Referenced by emitCmp(), and llvm::SystemZInstrInfo::getBranchInfo().

const unsigned llvm::SystemZ::CCMASK_SRST = CCMASK_1 | CCMASK_2

Definition at line 58 of file SystemZ.h.

Referenced by llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr().

const unsigned llvm::SystemZ::CCMASK_SRST_FOUND = CCMASK_1

Definition at line 56 of file SystemZ.h.

Referenced by llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr().

const unsigned llvm::SystemZ::CCMASK_SRST_NOTFOUND = CCMASK_2

Definition at line 57 of file SystemZ.h.

const unsigned llvm::SystemZ::CCMASK_TM = CCMASK_ANY

Definition at line 69 of file SystemZ.h.

Referenced by adjustForTestUnderMask().

const unsigned llvm::SystemZ::CCMASK_TM_ALL_0 = CCMASK_0

Definition at line 61 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_TM_ALL_1 = CCMASK_3

Definition at line 64 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_TM_MIXED_MSB_0 = CCMASK_1

Definition at line 62 of file SystemZ.h.

Referenced by adjustForTestUnderMask(), and getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_TM_MIXED_MSB_1 = CCMASK_2

Definition at line 63 of file SystemZ.h.

Referenced by adjustForTestUnderMask(), and getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_TM_MSB_0 = CCMASK_0 | CCMASK_1

Definition at line 67 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_TM_MSB_1 = CCMASK_2 | CCMASK_3

Definition at line 68 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_TM_SOME_0 = CCMASK_TM_ALL_1 ^ CCMASK_ANY

Definition at line 65 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

const unsigned llvm::SystemZ::CCMASK_TM_SOME_1 = CCMASK_TM_ALL_0 ^ CCMASK_ANY

Definition at line 66 of file SystemZ.h.

Referenced by getTestUnderMaskCond().

const unsigned llvm::SystemZ::IPM_CC = 28

Definition at line 72 of file SystemZ.h.

Referenced by addIPMSequence(), getIPMConversion(), and removeIPMBasedCompare().

const unsigned llvm::SystemZ::NumArgFPRs = 4
const unsigned llvm::SystemZ::NumArgGPRs = 5
const unsigned llvm::SystemZ::PFD_READ = 1

Definition at line 75 of file SystemZ.h.

const unsigned llvm::SystemZ::PFD_WRITE = 2

Definition at line 76 of file SystemZ.h.