LLVM 19.0.0git
Macros | Enumerations | Functions
ARCInstrInfo.cpp File Reference
#include "ARCInstrInfo.h"
#include "ARC.h"
#include "ARCMachineFunctionInfo.h"
#include "ARCSubtarget.h"
#include "MCTargetDesc/ARCInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineMemOperand.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Debug.h"
#include "ARCGenInstrInfo.inc"

Go to the source code of this file.

Macros

#define GET_INSTRINFO_CTOR_DTOR
 
#define DEBUG_TYPE   "arc-inst-info"
 

Enumerations

enum  AddrIncType { NoAddInc = 0 , PreInc = 1 , PostInc = 2 , Scaled = 3 }
 
enum  TSFlagsConstants { TSF_AddrModeOff = 0 , TSF_AddModeMask = 3 }
 

Functions

static bool isZeroImm (const MachineOperand &Op)
 
static bool isLoad (int Opcode)
 
static bool isStore (int Opcode)
 
static ARCCC::CondCode getOppositeBranchCondition (ARCCC::CondCode CC)
 Return the inverse of passed condition, i.e. turning COND_E to COND_NE.
 
static bool isUncondBranchOpcode (int Opc)
 
static bool isCondBranchOpcode (int Opc)
 
static bool isJumpOpcode (int Opc)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "arc-inst-info"

Definition at line 29 of file ARCInstrInfo.cpp.

◆ GET_INSTRINFO_CTOR_DTOR

#define GET_INSTRINFO_CTOR_DTOR

Definition at line 26 of file ARCInstrInfo.cpp.

Enumeration Type Documentation

◆ AddrIncType

Enumerator
NoAddInc 
PreInc 
PostInc 
Scaled 

Definition at line 31 of file ARCInstrInfo.cpp.

◆ TSFlagsConstants

Enumerator
TSF_AddrModeOff 
TSF_AddModeMask 

Definition at line 38 of file ARCInstrInfo.cpp.

Function Documentation

◆ getOppositeBranchCondition()

static ARCCC::CondCode getOppositeBranchCondition ( ARCCC::CondCode  CC)
static

◆ isCondBranchOpcode()

static bool isCondBranchOpcode ( int  Opc)
static

Definition at line 139 of file ARCInstrInfo.cpp.

◆ isJumpOpcode()

static bool isJumpOpcode ( int  Opc)
static

Definition at line 143 of file ARCInstrInfo.cpp.

Referenced by llvm::ARCInstrInfo::analyzeBranch().

◆ isLoad()

static bool isLoad ( int  Opcode)
static

◆ isStore()

static bool isStore ( int  Opcode)
static

◆ isUncondBranchOpcode()

static bool isUncondBranchOpcode ( int  Opc)
static

Definition at line 137 of file ARCInstrInfo.cpp.

◆ isZeroImm()

static bool isZeroImm ( const MachineOperand Op)
static