LLVM 20.0.0git
Macros | Functions
LoongArchMergeBaseOffset.cpp File Reference
#include "LoongArch.h"
#include "LoongArchTargetMachine.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetOptions.h"
#include <optional>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "loongarch-merge-base-offset"
 
#define LoongArch_MERGE_BASE_OFFSET_NAME   "LoongArch Merge Base Offset"
 

Functions

 INITIALIZE_PASS (LoongArchMergeBaseOffsetOpt, DEBUG_TYPE, LoongArch_MERGE_BASE_OFFSET_NAME, false, false) bool LoongArchMergeBaseOffsetOpt
 
static unsigned getNewOpc (unsigned Op, bool isLarge)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loongarch-merge-base-offset"

Definition at line 25 of file LoongArchMergeBaseOffset.cpp.

◆ LoongArch_MERGE_BASE_OFFSET_NAME

#define LoongArch_MERGE_BASE_OFFSET_NAME   "LoongArch Merge Base Offset"

Definition at line 26 of file LoongArchMergeBaseOffset.cpp.

Function Documentation

◆ getNewOpc()

static unsigned getNewOpc ( unsigned  Op,
bool  isLarge 
)
static

Definition at line 362 of file LoongArchMergeBaseOffset.cpp.

References llvm_unreachable.

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( LoongArchMergeBaseOffsetOpt  ,
DEBUG_TYPE  ,
LoongArch_MERGE_BASE_OFFSET_NAME  ,
false  ,
false   
)