LLVM 18.0.0git
|
ConstantFolder - Create constants with minimum, target independent, folding. More...
#include "llvm/IR/ConstantFolder.h"
ConstantFolder - Create constants with minimum, target independent, folding.
Definition at line 30 of file ConstantFolder.h.
|
explicitdefault |
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 203 of file ConstantFolder.h.
References llvm::CallingConv::C, and CreateCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 180 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantExpr::getCast().
Referenced by CreateBitCast(), CreateIntToPtr(), and CreatePtrToInt().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 231 of file ConstantFolder.h.
References llvm::ConstantExpr::getCompare(), LHS, P, and RHS.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 199 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantExpr::getFPCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 194 of file ConstantFolder.h.
References llvm::CallingConv::C, llvm::ConstantExpr::getIntegerCast(), and isSigned().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 207 of file ConstantFolder.h.
References llvm::CallingConv::C, and CreateCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 189 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 185 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantExpr::getPointerCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 211 of file ConstantFolder.h.
References llvm::CallingConv::C, and CreateCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 219 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantExpr::getSExtOrBitCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 223 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantExpr::getTruncOrBitCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 215 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantExpr::getZExtOrBitCast().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 43 of file ConstantFolder.h.
References llvm::ConstantFoldBinaryInstruction(), llvm::ConstantExpr::get(), llvm::ConstantExpr::isDesirableBinOp(), LHS, and RHS.
Referenced by FoldBinOpFMF().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 86 of file ConstantFolder.h.
References FoldBinOp(), LHS, and RHS.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 55 of file ConstantFolder.h.
References llvm::ConstantFoldBinaryInstruction(), llvm::ConstantExpr::get(), llvm::ConstantExpr::isDesirableBinOp(), llvm::PossiblyExactOperator::IsExact, LHS, and RHS.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 149 of file ConstantFolder.h.
References llvm::ConstantExpr::getExtractElement(), and Idx.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 133 of file ConstantFolder.h.
References llvm::ConstantFoldExtractValueInstruction().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 106 of file ConstantFolder.h.
References llvm::any_of(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getInBoundsGetElementPtr(), llvm::ConstantExpr::isSupportedGetElementPtr(), and Ptr.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 98 of file ConstantFolder.h.
References llvm::ConstantExpr::getCompare(), LHS, P, and RHS.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 157 of file ConstantFolder.h.
References llvm::ConstantExpr::getInsertElement(), and Idx.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 140 of file ConstantFolder.h.
References llvm::ConstantFoldInsertValueInstruction().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 68 of file ConstantFolder.h.
References llvm::ConstantFoldBinaryInstruction(), llvm::ConstantExpr::get(), llvm::ConstantExpr::isDesirableBinOp(), LHS, llvm::OverflowingBinaryOperator::NoSignedWrap, llvm::OverflowingBinaryOperator::NoUnsignedWrap, and RHS.
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 124 of file ConstantFolder.h.
References llvm::CallingConv::C, CC, and llvm::ConstantFoldSelectInstruction().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 167 of file ConstantFolder.h.
References llvm::ConstantExpr::getShuffleVector().
|
inlineoverridevirtual |
Implements llvm::IRBuilderFolder.
Definition at line 91 of file ConstantFolder.h.
References llvm::CallingConv::C, and llvm::ConstantFoldUnaryInstruction().