LLVM 22.0.0git
|
#include "llvm/CodeGen/BranchRelaxation.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/LivePhysRegs.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/RegisterScavenging.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include <cassert>
#include <cstdint>
#include <iterator>
#include <memory>
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "branch-relaxation" |
#define | BRANCH_RELAX_NAME "Branch relaxation pass" |
Functions | |
STATISTIC (NumSplit, "Number of basic blocks split") | |
STATISTIC (NumConditionalRelaxed, "Number of conditional branches relaxed") | |
STATISTIC (NumUnconditionalRelaxed, "Number of unconditional branches relaxed") | |
INITIALIZE_PASS (BranchRelaxationLegacy, DEBUG_TYPE, BRANCH_RELAX_NAME, false, false) void BranchRelaxation | |
verify - check BBOffsets, BBSizes, alignment of islands | |
#define BRANCH_RELAX_NAME "Branch relaxation pass" |
Definition at line 44 of file BranchRelaxation.cpp.
#define DEBUG_TYPE "branch-relaxation" |
Definition at line 38 of file BranchRelaxation.cpp.
INITIALIZE_PASS | ( | BranchRelaxationLegacy | , |
DEBUG_TYPE | , | ||
BRANCH_RELAX_NAME | , | ||
false | , | ||
false | |||
) |
verify - check BBOffsets, BBSizes, alignment of islands
Definition at line 142 of file BranchRelaxation.cpp.
References assert(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::getFirstTerminator(), llvm::MachineBasicBlock::getNumber(), MBB, MI, llvm::Offset, Size, and TII.
STATISTIC | ( | NumConditionalRelaxed | , |
"Number of conditional branches relaxed" | |||
) |
STATISTIC | ( | NumSplit | , |
"Number of basic blocks split" | |||
) |
STATISTIC | ( | NumUnconditionalRelaxed | , |
"Number of unconditional branches relaxed" | |||
) |