/freebsd-11-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-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ConstantFolding.h | 26 class Constant; 38 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset, 46 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL, 52 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL, 61 Constant *ConstantFoldInstOperands(Instruction *I, ArrayRef<Constant *> Ops, 69 Constant * 70 ConstantFoldCompareInstOperands(unsigned Predicate, Constant *LHS, 71 Constant *RH [all...] |
H A D | TargetFolder.h | 1 //====- TargetFolder.h - Constant folding helper ---------------*- C++ -*-====// 35 Constant *Fold(Constant *C) const { 36 if (Constant *CF = ConstantFoldConstant(C, DL)) 48 Constant *CreateAdd(Constant *LHS, Constant *RHS, 52 Constant *CreateFAdd(Constant *LHS, Constant *RH [all...] |
H A D | TypeMetadataUtils.h | 54 Constant *getPointerAtOffset(Constant *I, uint64_t Offset, Module &M);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantFolder.h | 1 //===- ConstantFolder.h - Constant folding helper ---------------*- C++ -*-===// 35 Constant *CreateAdd(Constant *LHS, Constant *RHS, 40 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { 44 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 47 void operator=(const Constant &) = delete; 48 Constant(const Constant &) = delete; 133 Constant *getAggregateElemen [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" 57 class ConstantData : public Constant { 58 friend class Constant; 61 llvm_unreachable("Constant data does not have operands!"); 65 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} 84 friend class Constant; 97 static Constant *getTrue(Type *Ty); 98 static Constant *getFals [all...] |
H A D | NoFolder.h | 1 //===- NoFolder.h - Constant folding helper ---------------------*- C++ -*-===// 41 Instruction *CreateAdd(Constant *LHS, Constant *RHS, 49 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { 53 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { 57 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { 61 Instruction *CreateSub(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-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ShuffleDecodeConstantPool.h | 24 class Constant; 28 void DecodePSHUFBMask(const Constant *C, unsigned Width, 32 void DecodeVPERMILPMask(const Constant *C, unsigned ElSize, unsigned Width, 36 void DecodeVPERMIL2PMask(const Constant *C, unsigned MatchImm, unsigned ElSize, 41 void DecodeVPPERMMask(const Constant *C, unsigned Width, 45 void DecodeVPERMVMask(const Constant *C, unsigned ElSize, unsigned Width, 49 void DecodeVPERMV3Mask(const Constant *C, unsigned ElSize, unsigned Width,
|
/freebsd-11-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) { 78 SmallVector<Constant *, [all...] |
H A D | GlobalStatus.h | 16 class Constant; 24 bool isSafeToDestroyConstant(const Constant *C);
|
H A D | VNCoercion.h | 80 Constant *getConstantStoreValueForLoad(Constant *SrcVal, unsigned Offset, 91 Constant *getConstantLoadValueForLoad(Constant *SrcVal, unsigned Offset, 103 Constant *getConstantMemInstValueForLoad(MemIntrinsic *SrcInst, unsigned Offset,
|
/freebsd-11-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 | 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()),
|
H A D | CGVTables.h | 54 llvm::Constant *PureVirtualFn = nullptr; 57 llvm::Constant *DeletedVirtualFn = nullptr; 60 llvm::Constant *maybeEmitThunk(GlobalDecl GD, 66 llvm::Constant *rtti, 74 llvm::Constant *rtti);
|
/freebsd-11-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-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopUnrollAnalyzer.cpp | 70 if (!isa<Constant>(LHS)) 71 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS)) 73 if (!isa<Constant>(RHS)) 74 if (Constant *SimpleRHS = SimplifiedValues.lookup(RHS)) 85 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV)) 135 Constant *CV = CDS->getElementAsConstant(Index); 136 assert(CV && "Constant expected."); 145 Constant *COp = dyn_cast<Constant>( [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Evaluator.cpp | 21 #include "llvm/IR/Constant.h" 48 isSimpleEnoughValueToCommit(Constant *C, 49 SmallPtrSetImpl<Constant *> &SimpleConstants, 61 isSimpleEnoughValueToCommitHelper(Constant *C, 62 SmallPtrSetImpl<Constant *> &SimpleConstants, 76 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL)) 116 isSimpleEnoughValueToCommit(Constant *C, 117 SmallPtrSetImpl<Constant *> &SimpleConstants, 131 static bool isSimpleEnoughPointerToCommit(Constant *C) { 181 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));
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DebugLocEntry.h | 57 } Constant; member in class:llvm::DbgValueLoc 69 Constant.Int = i; 73 Constant.CFP = CFP; 77 Constant.CIP = CIP; 93 int64_t getInt() const { return Constant.Int; } 94 const ConstantFP *getConstantFP() const { return Constant.CFP; } 95 const ConstantInt *getConstantInt() const { return Constant.CIP; } 111 Constant.CIP->dump(); 113 Constant.CFP->dump(); 143 /// share the same Loc/Constant an [all...] |