LLVM 20.0.0git
Namespaces | Macros | Functions | Variables
ARCBranchFinalize.cpp File Reference
#include "ARCInstrInfo.h"
#include "ARCTargetMachine.h"
#include "MCTargetDesc/ARCInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/Debug.h"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define DEBUG_TYPE   "arc-branch-finalize"
 

Functions

void llvm::initializeARCBranchFinalizePass (PassRegistry &Registry)
 
FunctionPassllvm::createARCBranchFinalizePass ()
 
 INITIALIZE_PASS_BEGIN (ARCBranchFinalize, "arc-branch-finalize", "ARC finalize branches", false, false) INITIALIZE_PASS_END(ARCBranchFinalize
 
arc branch ARC finalize static false unsigned getCCForBRcc (unsigned CC)
 
static bool isBRccPseudo (MachineInstr *MI)
 
static unsigned getBRccForPseudo (MachineInstr *MI)
 
static unsigned getCmpForPseudo (MachineInstr *MI)
 

Variables

arc branch finalize
 
arc branch ARC finalize branches
 
arc branch ARC finalize false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "arc-branch-finalize"

Definition at line 25 of file ARCBranchFinalize.cpp.

Function Documentation

◆ getBRccForPseudo()

static unsigned getBRccForPseudo ( MachineInstr MI)
static

Definition at line 100 of file ARCBranchFinalize.cpp.

References assert(), isBRccPseudo(), and MI.

◆ getCCForBRcc()

arc branch ARC finalize static false unsigned getCCForBRcc ( unsigned  CC)
static

◆ getCmpForPseudo()

static unsigned getCmpForPseudo ( MachineInstr MI)
static

Definition at line 107 of file ARCBranchFinalize.cpp.

References assert(), isBRccPseudo(), and MI.

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( ARCBranchFinalize  ,
"arc-branch-finalize"  ,
"ARC finalize branches"  ,
false  ,
false   
)

◆ isBRccPseudo()

static bool isBRccPseudo ( MachineInstr MI)
static

Definition at line 95 of file ARCBranchFinalize.cpp.

References MI.

Referenced by getBRccForPseudo(), and getCmpForPseudo().

Variable Documentation

◆ branches

arc branch ARC finalize branches

Definition at line 66 of file ARCBranchFinalize.cpp.

◆ false

arc branch ARC finalize false

Definition at line 66 of file ARCBranchFinalize.cpp.

◆ finalize

arc branch finalize

Definition at line 65 of file ARCBranchFinalize.cpp.