LLVM 22.0.0git
ConstantFold.h File Reference
#include "llvm/IR/InstrTypes.h"
#include "llvm/Support/Compiler.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

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