/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.h | 1 //===-- ConstantFolding.h - Internal Constant Folding Interface -*- C++ -*-===// 26 class Constant; 29 // Constant fold various types of instruction... 30 Constant *ConstantFoldCastInstruction( 32 Constant *V, ///< The source constant 35 Constant *ConstantFoldSelectInstruction(Constant *Cond, 36 Constant *V1, Constant *V2); 37 Constant *ConstantFoldExtractElementInstructio [all...] |
H A D | Constants.cpp | 1 //===-- Constants.cpp - Implement Constant nodes --------------------------===// 9 // This file implements the Constant* classes. 37 // Constant Class 40 bool Constant::isNegativeZeroValue() const { 66 bool Constant::isZeroValue() const { 86 bool Constant::isNullValue() const { 101 bool Constant::isAllOnesValue() const { 112 if (Constant *Splat = CV->getSplatValue()) 127 bool Constant::isOneValue() const { 138 if (Constant *Spla [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ConstantFolding.h | 26 class Constant; 37 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset, 45 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL, 51 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL, 60 Constant *ConstantFoldInstOperands(Instruction *I, ArrayRef<Constant *> Ops, 68 Constant * 69 ConstantFoldCompareInstOperands(unsigned Predicate, Constant *LHS, 70 Constant *RH [all...] |
H A D | TargetFolder.h | 1 //====- TargetFolder.h - Constant folding helper ---------------*- C++ -*-====// 36 Constant *Fold(Constant *C) const { 49 Constant *CreateAdd(Constant *LHS, Constant *RHS, 53 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override { 56 Constant *CreateSu [all...] |
H A D | TypeMetadataUtils.h | 24 class Constant; 59 Constant *getPointerAtOffset(Constant *I, uint64_t Offset, Module &M);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantFolder.h | 1 //===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===// 38 Constant *CreateAdd(Constant *LHS, Constant *RHS, 43 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override { 47 Constant *CreateSub(Constant *LHS, Constant *RH [all...] |
H A D | Constant.h | 1 //===-- llvm/Constant.h - Constant class definition -------------*- C++ -*-===// 9 // This file contains the declaration of the Constant class. 40 /// LLVM Constant Representation 41 class Constant : public User { class in namespace:llvm 43 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) function in class:llvm::Constant 46 ~Constant() = default; 49 void operator=(const Constant &) = delete; 50 Constant(const Constant [all...] |
H A D | IRBuilderFolder.h | 32 virtual Value *CreateAdd(Constant *LHS, Constant *RHS, 34 virtual Value *CreateFAdd(Constant *LHS, Constant *RHS) const = 0; 35 virtual Value *CreateSub(Constant *LHS, Constant *RHS, 37 virtual Value *CreateFSub(Constant *LHS, Constant *RHS) const = 0; 38 virtual Value *CreateMul(Constant *LHS, Constant *RH [all...] |
H A D | Constants.h | 1 //===-- llvm/Constants.h - Constant class subclass definitions --*- C++ -*-===// 10 /// This file contains the declarations for the subclasses of Constant, 30 #include "llvm/IR/Constant.h" 51 class ConstantData : public Constant { 52 friend class Constant; 55 llvm_unreachable("Constant data does not have operands!"); 59 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} 78 friend class Constant; 91 static Constant *getTrue(Type *Ty); 92 static Constant *getFals [all...] |
H A D | NoFolder.h | 1 //===- NoFolder.h - Constant folding helper ---------------------*- C++ -*-===// 44 Instruction *CreateAdd(Constant *LHS, Constant *RHS, 53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const override { 57 Instruction *CreateSub(Constant *LHS, Constant *RHS, 66 Instruction *CreateFSub(Constant *LHS, Constant *RHS) const override { 70 Instruction *CreateMul(Constant *LH [all...] |
H A D | GlobalIFunc.h | 37 const Twine &Name, Constant *Resolver, Module *Parent); 47 Constant *Resolver, Module *Parent); 57 void setResolver(Constant *Resolver) { 60 const Constant *getResolver() const { 63 Constant *getResolver() {
|
H A D | GlobalIndirectSymbol.h | 31 LinkageTypes Linkage, const Twine &Name, Constant *Symbol); 43 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant); 50 void setIndirectSymbol(Constant *Symbol) { 53 const Constant *getIndirectSymbol() const { 56 Constant *getIndirectSymbol() { 57 return const_cast<Constant *>( 90 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GlobalIndirectSymbol, Constant)
|
H A D | GlobalAlias.h | 32 const Twine &Name, Constant *Aliasee, Module *Parent); 42 Constant *Aliasee, Module *Parent); 72 void setAliasee(Constant *Aliasee); 73 const Constant *getAliasee() const { 76 Constant *getAliasee() {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ShuffleDecodeConstantPool.h | 22 class Constant; 26 void DecodePSHUFBMask(const Constant *C, unsigned Width, 30 void DecodeVPERMILPMask(const Constant *C, unsigned ElSize, unsigned Width, 34 void DecodeVPERMIL2PMask(const Constant *C, unsigned M2Z, unsigned ElSize, 38 void DecodeVPPERMMask(const Constant *C, unsigned Width, 42 void DecodeVPERMVMask(const Constant *C, unsigned ElSize, unsigned Width, 46 void DecodeVPERMV3Mask(const Constant *C, unsigned ElSize, unsigned Width,
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | Evaluator.h | 34 /// This class evaluates LLVM IR, producing the Constant representing each SSA 51 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType())); 57 bool EvaluateFunction(Function *F, Constant *&RetVal, 58 const SmallVectorImpl<Constant*> &ActualArgs); 65 Constant *getVal(Value *V) { 66 if (Constant *CV = dyn_cast<Constant>(V)) return CV; 67 Constant *R = ValueStack.back().lookup(V); 72 void setVal(Value *V, Constant *C) { 77 Constant *castCallResultIfNeede [all...] |
H A D | GlobalStatus.h | 16 class Constant; 24 bool isSafeToDestroyConstant(const Constant *C);
|
H A D | VNCoercion.h | 25 class Constant; 80 Constant *getConstantStoreValueForLoad(Constant *SrcVal, unsigned Offset, 91 Constant *getConstantLoadValueForLoad(Constant *SrcVal, unsigned Offset, 103 Constant *getConstantMemInstValueForLoad(MemIntrinsic *SrcInst, unsigned Offset,
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | PatternInit.h | 13 class Constant; 22 llvm::Constant *initializationPatternFor(CodeGenModule &, llvm::Type *);
|
H A D | ConstantEmitter.h | 47 llvm::SmallVector<std::pair<llvm::Constant *, llvm::GlobalVariable*>, 4> 72 llvm::Constant *tryEmitForInitializer(const VarDecl &D); 73 llvm::Constant *tryEmitForInitializer(const Expr *E, LangAS destAddrSpace, 75 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace, 96 llvm::Constant *tryEmitAbstractForInitializer(const VarDecl &D); 102 llvm::Constant *emitAbstract(const Expr *E, QualType T); 103 llvm::Constant *emitAbstract(SourceLocation loc, const APValue &value, 107 llvm::Constant *tryEmitAbstract(const Expr *E, QualType T); 108 llvm::Constant *tryEmitAbstractForMemory(const Expr *E, QualType T); 110 llvm::Constant *tryEmitAbstrac [all...] |
H A D | ConstantInitBuilder.cpp | 23 if (Data.is<llvm::Constant*>()) { 24 return Data.get<llvm::Constant*>()->getType(); 40 if (Data.is<llvm::Constant*>()) { 41 GV->setInitializer(Data.get<llvm::Constant*>()); 52 ConstantInitBuilderBase::createFuture(llvm::Constant *initializer) { 67 ConstantInitBuilderBase::createGlobal(llvm::Constant *initializer, 88 llvm::Constant *initializer){ 97 llvm::Constant *resolvedReference = 128 llvm::Constant * 130 llvm::Constant *targe [all...] |
H A D | Address.h | 73 /// LLVM Constant. 76 ConstantAddress(llvm::Constant *pointer, CharUnits alignment) 83 llvm::Constant *getPointer() const { 84 return llvm::cast<llvm::Constant>(Address::getPointer()); 97 return llvm::isa<llvm::Constant>(addr.getPointer()); 100 return ConstantAddress(llvm::cast<llvm::Constant>(addr.getPointer()),
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | ValueList.cpp | 12 #include "llvm/IR/Constant.h" 88 if (Constant *PHC = dyn_cast<Constant>(&*OldV)) { 99 Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, Type *Ty) { 110 return cast<Constant>(V); 114 Constant *C = new ConstantPlaceHolder(Ty, Context); 158 SmallVector<Constant *, 64> NewOps; 162 Constant *Placeholder = ResolveConstants.back().first; 174 if (!isa<Constant>(U) || isa<GlobalValue>(U)) { 181 Constant *User [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopUnrollAnalyzer.cpp | 71 if (!isa<Constant>(LHS)) 72 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS)) 74 if (!isa<Constant>(RHS)) 75 if (Constant *SimpleRHS = SimplifiedValues.lookup(RHS)) 86 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV)) 136 Constant *CV = CDS->getElementAsConstant(Index); 137 assert(CV && "Constant expected."); 146 Constant *COp = dyn_cast<Constant>( [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Evaluator.cpp | 20 #include "llvm/IR/Constant.h" 47 isSimpleEnoughValueToCommit(Constant *C, 48 SmallPtrSetImpl<Constant *> &SimpleConstants, 60 isSimpleEnoughValueToCommitHelper(Constant *C, 61 SmallPtrSetImpl<Constant *> &SimpleConstants, 75 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL)) 115 isSimpleEnoughValueToCommit(Constant *C, 116 SmallPtrSetImpl<Constant *> &SimpleConstants, 130 static bool isSimpleEnoughPointerToCommit(Constant *C) { 180 static Constant * [all...] |
H A D | CanonicalizeAliases.cpp | 42 static Constant *canonicalizeAlias(Constant *C, bool &Changed) { 56 std::vector<Constant *> Ops; 58 Ops.push_back(canonicalizeAlias(cast<Constant>(U), Changed));
|