LLVM 20.0.0git
Macros | Functions
LowerConstantIntrinsics.cpp File Reference
#include "llvm/Transforms/Scalar/LowerConstantIntrinsics.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/DomTreeUpdater.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/PatternMatch.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
#include <optional>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "lower-is-constant-intrinsic"
 

Functions

 STATISTIC (IsConstantIntrinsicsHandled, "Number of 'is.constant' intrinsic calls handled")
 
 STATISTIC (ObjectSizeIntrinsicsHandled, "Number of 'objectsize' intrinsic calls handled")
 
static ValuelowerIsConstantIntrinsic (IntrinsicInst *II)
 
static bool replaceConditionalBranchesOnConstant (Instruction *II, Value *NewValue, DomTreeUpdater *DTU)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "lower-is-constant-intrinsic"

Definition at line 40 of file LowerConstantIntrinsics.cpp.

Function Documentation

◆ lowerIsConstantIntrinsic()

static Value * lowerIsConstantIntrinsic ( IntrinsicInst II)
static

◆ replaceConditionalBranchesOnConstant()

static bool replaceConditionalBranchesOnConstant ( Instruction II,
Value NewValue,
DomTreeUpdater DTU 
)
static

◆ STATISTIC() [1/2]

STATISTIC ( IsConstantIntrinsicsHandled  ,
"Number of 'is.constant' intrinsic calls handled"   
)

◆ STATISTIC() [2/2]

STATISTIC ( ObjectSizeIntrinsicsHandled  ,
"Number of 'objectsize' intrinsic calls handled"   
)