Searched refs:Constant (Results 1 - 25 of 524) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.h1 //===-- 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 DConstants.cpp1 //===-- 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 DConstantFolding.h26 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 DTargetFolder.h1 //====- 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 DTypeMetadataUtils.h54 Constant *getPointerAtOffset(Constant *I, uint64_t Offset, Module &M);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h1 //===- 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 DConstant.h1 //===-- 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 DConstants.h1 //===-- 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 DNoFolder.h1 //===- 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 DGlobalIFunc.h37 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 DGlobalIndirectSymbol.h31 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 DGlobalAlias.h32 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 DX86ShuffleDecodeConstantPool.h24 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 DEvaluator.h34 /// 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 DGlobalStatus.h16 class Constant;
24 bool isSafeToDestroyConstant(const Constant *C);
H A DVNCoercion.h80 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 DPatternInit.h13 class Constant;
22 llvm::Constant *initializationPatternFor(CodeGenModule &, llvm::Type *);
H A DConstantEmitter.h47 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 DAddress.h73 /// 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 DCGVTables.h54 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 DValueList.cpp12 #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 DLoopUnrollAnalyzer.cpp70 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 DEvaluator.cpp21 #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 DCanonicalizeAliases.cpp42 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 DDebugLocEntry.h57 } 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...]

Completed in 405 milliseconds

1234567891011>>