Home
last modified time | relevance | path

Searched refs:Constant (Results 1 – 25 of 758) sorted by relevance

12345678910>>...31

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DConstantFolding.h34 class Constant; variable
49 IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset,
58 LLVM_ABI Constant *
65 LLVM_ABI Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
80 LLVM_ABI Constant *ConstantFoldInstOperands(
81 const Instruction *I, ArrayRef<Constant *> Ops, const DataLayout &DL,
88 LLVM_ABI Constant *ConstantFoldCompareInstOperands(
89 unsigned Predicate, Constant *LHS, Constant *RHS, const DataLayout &DL,
94 LLVM_ABI Constant *ConstantFoldUnaryOpOperand(unsigned Opcode, Constant *Op,
99 LLVM_ABI Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
[all …]
H A DTargetFolder.h30 class Constant; variable
39 Constant *Fold(Constant *C) const { in Fold()
57 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp()
58 auto *RC = dyn_cast<Constant>(RHS); in FoldBinOp()
69 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp()
70 auto *RC = dyn_cast<Constant>(RHS); in FoldExactBinOp()
82 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp()
83 auto *RC = dyn_cast<Constant>(RHS); in FoldNoWrapBinOp()
104 auto *LC = dyn_cast<Constant>(LHS); in FoldCmp()
105 auto *RC = dyn_cast<Constant>(RHS); in FoldCmp()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFold.h31 class Constant; variable
35 LLVM_ABI Constant *
37 Constant *V, ///< The source constant
40 LLVM_ABI Constant *ConstantFoldSelectInstruction(Constant *Cond, Constant *V1,
41 Constant *V2);
42 LLVM_ABI Constant *ConstantFoldExtractElementInstruction(Constant *Val,
43 Constant *Idx);
44 LLVM_ABI Constant *ConstantFoldInsertElementInstruction(Constant *Val,
45 Constant *Elt,
46 Constant *Idx);
[all …]
H A DConstants.h56 class ConstantData : public Constant {
59 friend class Constant; variable
66 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, AllocMarker) {} in ConstantData()
88 friend class Constant; variable
109 LLVM_ABI static Constant *getTrue(Type *Ty);
110 LLVM_ABI static Constant *getFalse(Type *Ty);
111 LLVM_ABI static Constant *getBool(Type *Ty, bool V);
115 LLVM_ABI static Constant *get(Type *Ty, uint64_t V, bool IsSigned = false);
134 static Constant *getSigned(Type *Ty, int64_t V) { in getSigned()
149 LLVM_ABI static Constant *get(Type *Ty, const APInt &V);
[all …]
H A DConstant.h43 class Constant : public User {
45 Constant(Type *ty, ValueTy vty, AllocInfo AllocInfo) in Constant() function
48 ~Constant() = default;
51 void operator=(const Constant &) = delete;
52 Constant(const Constant &) = delete;
147 LLVM_ABI Constant *getAggregateElement(unsigned Elt) const;
148 LLVM_ABI Constant *getAggregateElement(Constant *Elt) const;
153 LLVM_ABI Constant *getSplatValue(bool AllowPoison = false) const;
190 LLVM_ABI static Constant *getNullValue(Type *Ty);
195 LLVM_ABI static Constant *getAllOnesValue(Type *Ty);
[all …]
H A DConstantFolder.h46 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp()
47 auto *RC = dyn_cast<Constant>(RHS); in FoldBinOp()
58 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp()
59 auto *RC = dyn_cast<Constant>(RHS); in FoldExactBinOp()
71 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp()
72 auto *RC = dyn_cast<Constant>(RHS); in FoldNoWrapBinOp()
94 if (Constant *C = dyn_cast<Constant>(V)) in FoldUnOpFMF()
100 auto *LC = dyn_cast<Constant>(LHS); in FoldCmp()
101 auto *RC = dyn_cast<Constant>(RHS); in FoldCmp()
112 if (auto *PC = dyn_cast<Constant>(Ptr)) { in FoldGEP()
[all …]
H A DGlobalIFunc.h41 const Twine &Name, Constant *Resolver, Module *Parent);
51 Constant *Resolver, Module *Parent);
58 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant);
72 void setResolver(Constant *Resolver) { Op<0>().set(Resolver); } in setResolver()
73 const Constant *getResolver() const { in getResolver()
74 return static_cast<Constant *>(Op<0>().get()); in getResolver()
76 Constant *getResolver() { return static_cast<Constant *>(Op<0>().get()); } in getResolver()
108 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GlobalIFunc, Constant)
H A DGlobalAlias.h35 const Twine &Name, Constant *Aliasee, Module *Parent);
45 Constant *Aliasee, Module *Parent);
69 DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant);
86 LLVM_ABI void setAliasee(Constant *Aliasee);
87 const Constant *getAliasee() const { in getAliasee()
88 return static_cast<Constant *>(Op<0>().get()); in getAliasee()
90 Constant *getAliasee() { return static_cast<Constant *>(Op<0>().get()); } in getAliasee()
113 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GlobalAlias, Constant)
/freebsd/contrib/libfido2/windows/
H A Dconst.ps19 -Option Constant
10 New-Variable -Name 'LIBRESSL' -Value 'libressl-4.0.0' -Option Constant
11 New-Variable -Name 'CRYPTO_LIB' -Value 'crypto' -Option Constant
12 New-Variable -Name 'CRYPTO_DLL' -Value 'crypto-55' -Option Constant
15 New-Variable -Name 'LIBCBOR' -Value 'libcbor-0.12.0' -Option Constant
16 New-Variable -Name 'LIBCBOR_BRANCH' -Value 'v0.12.0' -Option Constant
18 -Option Constant
21 New-Variable -Name 'ZLIB' -Value 'zlib-1.3.1' -Option Constant
22 New-Variable -Name 'ZLIB_BRANCH' -Value 'v1.3.1' -Option Constant
24 -Option Constant
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DConstantEmitter.h47 llvm::SmallVector<std::pair<llvm::Constant *, llvm::GlobalVariable*>, 4>
75 llvm::Constant *tryEmitForInitializer(const VarDecl &D);
76 llvm::Constant *tryEmitForInitializer(const Expr *E, LangAS destAddrSpace,
78 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace,
99 llvm::Constant *tryEmitAbstractForInitializer(const VarDecl &D);
105 llvm::Constant *emitAbstract(const Expr *E, QualType T);
106 llvm::Constant *
111 llvm::Constant *tryEmitAbstract(const Expr *E, QualType T);
112 llvm::Constant *tryEmitAbstractForMemory(const Expr *E, QualType T);
114 llvm::Constant *tryEmitAbstract(const APValue &value, QualType T);
[all …]
H A DCGExprConstant.cpp45 llvm::Constant *getPadding(const CodeGenModule &CGM, CharUnits PadSize) { in getPadding()
50 return llvm::Constant::getNullValue(Ty); in getPadding()
60 CharUnits getAlignment(const llvm::Constant *C) const { in getAlignment()
69 CharUnits getSize(const llvm::Constant *C) const { in getSize()
73 llvm::Constant *getPadding(CharUnits PadSize) const { in getPadding()
77 llvm::Constant *getZeroes(CharUnits ZeroSize) const { in getZeroes()
94 llvm::SmallVector<llvm::Constant*, 32> Elems;
109 static llvm::Constant *buildFrom(CodeGenModule &CGM,
110 ArrayRef<llvm::Constant *> Elems,
125 bool add(llvm::Constant *C, CharUnits Offset, bool AllowOverwrite);
[all …]
H A DCodeGenModule.h45 class Constant; variable
297 llvm::Constant *CopyHelper;
298 llvm::Constant *DisposeHelper;
334 Structor(int Priority, unsigned LexOrder, llvm::Constant *Initializer, in Structor()
335 llvm::Constant *AssociatedData) in Structor()
340 llvm::Constant *Initializer;
341 llvm::Constant *AssociatedData;
438 llvm::MapVector<StringRef, llvm::TrackingVH<llvm::Constant>> Replacements;
443 llvm::SmallVector<std::pair<llvm::GlobalValue *, llvm::Constant *>, 8>
480 std::vector<llvm::Constant*> Annotations;
[all …]
H A DConstantInitBuilder.cpp23 if (const auto *C = dyn_cast<llvm::Constant *>(Data)) { in getType()
40 if (auto *C = dyn_cast<llvm::Constant *>(Data)) { in installInGlobal()
52 ConstantInitBuilderBase::createFuture(llvm::Constant *initializer) { in createFuture()
67 ConstantInitBuilderBase::createGlobal(llvm::Constant *initializer, in createGlobal()
88 llvm::Constant *initializer){ in setGlobalInitializer()
97 llvm::Constant *resolvedReference = in resolveSelfReferences()
128 llvm::Constant *
130 llvm::Constant *target) { in getRelativeOffset()
135 llvm::Constant *ConstantAggregateBuilderBase::getRelativeOffsetToPosition( in getRelativeOffsetToPosition()
136 llvm::IntegerType *offsetType, llvm::Constant *target, size_t position) { in getRelativeOffsetToPosition()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h44 PointerUnion<Constant *, MutableAggregate *> Val;
49 MutableValue(Constant *C) { Val = C; } in MutableValue()
58 if (auto *C = dyn_cast_if_present<Constant *>(Val)) in getType()
63 Constant *toConstant() const { in toConstant()
64 if (auto *C = dyn_cast_if_present<Constant *>(Val)) in toConstant()
69 Constant *read(Type *Ty, APInt Offset, const DataLayout &DL) const;
70 bool write(Constant *V, APInt Offset, const DataLayout &DL);
78 Constant *toConstant() const;
93 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType())); in ~Evaluator()
99 bool EvaluateFunction(Function *F, Constant *&RetVal,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp56 bool Constant::isNegativeZeroValue() const { in isNegativeZeroValue()
76 bool Constant::isZeroValue() const { in isZeroValue()
90 bool Constant::isNullValue() const { in isNullValue()
107 bool Constant::isAllOnesValue() const { in isAllOnesValue()
124 bool Constant::isOneValue() const { in isOneValue()
141 bool Constant::isNotOneValue() const { in isNotOneValue()
153 Constant *Elt = getAggregateElement(I); in isNotOneValue()
169 bool Constant::isMinSignedValue() const { in isMinSignedValue()
186 bool Constant::isNotMinSignedValue() const { in isNotMinSignedValue()
198 Constant *Elt = getAggregateElement(I); in isNotMinSignedValue()
[all …]
H A DConstantFold.cpp69 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast()
75 return Constant::getAllOnesValue(DestTy); in FoldBitCast()
124 static Constant *foldMaybeUndesirableCast(unsigned opc, Constant *V, in foldMaybeUndesirableCast()
131 Constant *llvm::ConstantFoldCastInstruction(unsigned opc, Constant *V, in ConstantFoldCastInstruction()
142 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
148 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
169 if (Constant *Splat = V->getSplatValue()) { in ConstantFoldCastInstruction()
170 Constant *Res = foldMaybeUndesirableCast(opc, Splat, DstEltTy); in ConstantFoldCastInstruction()
178 SmallVector<Constant *, 16> res; in ConstantFoldCastInstruction()
183 Constant *C = ConstantExpr::getExtractElement(V, ConstantInt::get(Ty, i)); in ConstantFoldCastInstruction()
[all …]
H A DReplaceConstant.cpp26 Constant *C) { in expandUser()
52 bool convertUsersOfConstantsToInstructions(ArrayRef<Constant *> Consts, in convertUsersOfConstantsToInstructions()
57 SmallVector<Constant *> Stack; in convertUsersOfConstantsToInstructions()
58 for (Constant *C : Consts) { in convertUsersOfConstantsToInstructions()
68 Stack.push_back(cast<Constant>(U)); in convertUsersOfConstantsToInstructions()
73 SetVector<Constant *> ExpandableUsers; in convertUsersOfConstantsToInstructions()
75 Constant *C = Stack.pop_back_val(); in convertUsersOfConstantsToInstructions()
81 Stack.push_back(cast<Constant>(Nested)); in convertUsersOfConstantsToInstructions()
86 for (Constant *C : ExpandableUsers) in convertUsersOfConstantsToInstructions()
105 if (auto *C = dyn_cast<Constant>(U.get())) { in convertUsersOfConstantsToInstructions()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DConstant.cpp18 void Constant::dumpOS(raw_ostream &OS) const { in dumpOS()
36 Constant *ConstantInt::getTrue(Type *Ty) { in getTrue()
40 Constant *ConstantInt::getFalse(Type *Ty) { in getFalse()
44 Constant *ConstantInt::getBool(Type *Ty, bool V) { in getBool()
61 Constant *ConstantInt::getSigned(Type *Ty, int64_t V) { in getSigned()
74 Constant *ConstantInt::get(Type *Ty, const APInt &V) { in get()
90 Constant *ConstantFP::get(Type *Ty, double V) { in get()
95 Constant *ConstantFP::get(Type *Ty, const APFloat &V) { in get()
100 Constant *ConstantFP::get(Type *Ty, StringRef Str) { in get()
110 Constant *ConstantFP::getNaN(Type *Ty, bool Negative, uint64_t Payload) { in getNaN()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h32 class Constant : public sandboxir::User {
34 Constant(llvm::Constant *C, sandboxir::Context &SBCtx) in Constant() function
35 : sandboxir::User(ClassID::Constant, C, SBCtx) {} in Constant()
36 Constant(ClassID ID, llvm::Constant *C, sandboxir::Context &SBCtx) in Constant() function
62 assert(isa<llvm::Constant>(Val) && "Expected Constant!"); in verify()
69 class ConstantInt : public Constant {
71 : Constant(ClassID::ConstantInt, C, Ctx) {} in ConstantInt()
82 LLVM_ABI static Constant *getTrue(Type *Ty);
83 LLVM_ABI static Constant *getFalse(Type *Ty);
84 LLVM_ABI static Constant *getBool(Type *Ty, bool V);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionSpecialization.h106 using ConstMap = DenseMap<Value *, Constant *>;
153 class InstCostVisitor : public InstVisitor<InstCostVisitor, Constant *> {
183 LLVM_ABI Cost getCodeSizeSavingsForArg(Argument *A, Constant *C);
190 friend class InstVisitor<InstCostVisitor, Constant *>;
192 Constant *findConstantFor(Value *V) const;
197 Constant *C = nullptr);
216 bool discoverTransitivelyIncomingValues(Constant *Const, PHINode *Root,
219 Constant *visitInstruction(Instruction &I) { return nullptr; } in visitInstruction()
220 Constant *visitPHINode(PHINode &I);
221 Constant *visitFreezeInst(FreezeInst &I);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp44 isSimpleEnoughValueToCommit(Constant *C,
45 SmallPtrSetImpl<Constant *> &SimpleConstants,
57 isSimpleEnoughValueToCommitHelper(Constant *C, in isSimpleEnoughValueToCommitHelper()
58 SmallPtrSetImpl<Constant *> &SimpleConstants, in isSimpleEnoughValueToCommitHelper()
72 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL)) in isSimpleEnoughValueToCommitHelper()
114 isSimpleEnoughValueToCommit(Constant *C, in isSimpleEnoughValueToCommit()
115 SmallPtrSetImpl<Constant *> &SimpleConstants, in isSimpleEnoughValueToCommit()
130 Constant *Evaluator::MutableValue::read(Type *Ty, APInt Offset, in read()
144 return ConstantFoldLoadFromConst(cast<Constant *>(V->Val), Ty, Offset, DL); in read()
148 Constant *C = cast<Constant *>(Val); in makeMutable()
[all …]
H A DModuleUtils.cpp31 int Priority, Constant *Data) { in appendToGlobalArray()
36 SmallVector<Constant *, 16> CurrentCtors; in appendToGlobalArray()
40 if (Constant *Init = GVCtor->getInitializer()) { in appendToGlobalArray()
44 CurrentCtors.push_back(cast<Constant>(Init->getOperand(i))); in appendToGlobalArray()
54 Constant *CSVals[3]; in appendToGlobalArray()
58 : Constant::getNullValue(IRB.getPtrTy()); in appendToGlobalArray()
59 Constant *RuntimeCtorInit = in appendToGlobalArray()
66 Constant *NewInit = ConstantArray::get(AT, CurrentCtors); in appendToGlobalArray()
74 void llvm::appendToGlobalCtors(Module &M, Function *F, int Priority, Constant *Data) { in appendToGlobalCtors()
78 void llvm::appendToGlobalDtors(Module &M, Function *F, int Priority, Constant *Data) { in appendToGlobalDtors()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp78 static Constant *foldConstVectorToAPInt(APInt &Result, Type *DestTy, in foldConstVectorToAPInt()
79 Constant *C, Type *SrcEltTy, in foldConstVectorToAPInt()
86 Constant *Element; in foldConstVectorToAPInt()
111 Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) { in FoldBitCast()
116 if (Constant *Res = ConstantFoldLoadFromUniformValue(C, DestTy, DL)) in FoldBitCast()
136 if (Constant *CE = foldConstVectorToAPInt(Result, DestTy, C, in FoldBitCast()
157 Constant *Ops = C; // don't take the address of C! in FoldBitCast()
221 SmallVector<Constant*, 32> Result; in FoldBitCast()
224 Constant *Zero = Constant::getNullValue(DstEltTy); in FoldBitCast()
230 Constant *Elt = Zero; in FoldBitCast()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h57 llvm::SmallVector<llvm::Constant*, 4> Indices;
62 llvm::SmallVector<llvm::Constant*, 16> Buffer;
80 llvm::GlobalVariable *createGlobal(llvm::Constant *initializer,
88 ConstantInitFuture createFuture(llvm::Constant *initializer);
91 llvm::Constant *initializer);
111 llvm::SmallVectorImpl<llvm::Constant*> &getBuffer() { in getBuffer()
115 const llvm::SmallVectorImpl<llvm::Constant*> &getBuffer() const { in getBuffer()
189 void add(llvm::Constant *value) { in add()
206 void addSignedPointer(llvm::Constant *Pointer,
216 void addAll(llvm::ArrayRef<llvm::Constant *> values) { in addAll()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDebugLocEntry.h57 } Constant; variable
67 DbgValueLocEntry(int64_t i) : EntryKind(E_Integer) { Constant.Int = i; } in DbgValueLocEntry()
69 Constant.CFP = CFP; in DbgValueLocEntry()
72 Constant.CIP = CIP; in DbgValueLocEntry()
88 int64_t getInt() const { return Constant.Int; } in getInt()
89 const ConstantFP *getConstantFP() const { return Constant.CFP; } in getConstantFP()
90 const ConstantInt *getConstantInt() const { return Constant.CIP; } in getConstantInt()
102 Constant.CIP->dump(); in dump()
104 Constant.CFP->dump(); in dump()
264 return A.Constant.Int == B.Constant.Int;
[all …]

12345678910>>...31