LLVM 20.0.0git
Namespaces | Functions
ConstantFold.h File Reference
#include "llvm/IR/InstrTypes.h"
#include <optional>

Go to the source code of this file.

Namespaces

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

Functions

Constantllvm::ConstantFoldCastInstruction (unsigned opcode, Constant *V, Type *DestTy)
 
Constantllvm::ConstantFoldSelectInstruction (Constant *Cond, Constant *V1, Constant *V2)
 Attempt to constant fold a select instruction with the specified operands.
 
Constantllvm::ConstantFoldExtractElementInstruction (Constant *Val, Constant *Idx)
 Attempt to constant fold an extractelement instruction with the specified operands and indices.
 
Constantllvm::ConstantFoldInsertElementInstruction (Constant *Val, Constant *Elt, Constant *Idx)
 Attempt to constant fold an insertelement instruction with the specified operands and indices.
 
Constantllvm::ConstantFoldShuffleVectorInstruction (Constant *V1, Constant *V2, ArrayRef< int > Mask)
 Attempt to constant fold a shufflevector instruction with the specified operands and mask.
 
Constantllvm::ConstantFoldExtractValueInstruction (Constant *Agg, ArrayRef< unsigned > Idxs)
 Attempt to constant fold an extractvalue instruction with the specified operands and indices.
 
Constantllvm::ConstantFoldInsertValueInstruction (Constant *Agg, Constant *Val, ArrayRef< unsigned > Idxs)
 ConstantFoldInsertValueInstruction - Attempt to constant fold an insertvalue instruction with the specified operands and indices.
 
Constantllvm::ConstantFoldUnaryInstruction (unsigned Opcode, Constant *V)
 
Constantllvm::ConstantFoldBinaryInstruction (unsigned Opcode, Constant *V1, Constant *V2)
 
Constantllvm::ConstantFoldCompareInstruction (CmpInst::Predicate Predicate, Constant *C1, Constant *C2)
 
Constantllvm::ConstantFoldGetElementPtr (Type *Ty, Constant *C, std::optional< ConstantRange > InRange, ArrayRef< Value * > Idxs)