Home
last modified time | relevance | path

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

12345678910>>...32

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantFolder.h38 Constant *CreateAdd(Constant *LHS, Constant *RHS,
43 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override { in CreateFAdd()
47 Constant *CreateSub(Constant *LHS, Constant *RHS,
52 Constant *CreateFSub(Constant *LHS, Constant *RHS) const override { in CreateFSub()
56 Constant *CreateMul(Constant *LHS, Constant *RHS,
61 Constant *CreateFMul(Constant *LHS, Constant *RHS) const override { in CreateFMul()
65 Constant *CreateUDiv(Constant *LHS, Constant *RHS,
70 Constant *CreateSDiv(Constant *LHS, Constant *RHS,
75 Constant *CreateFDiv(Constant *LHS, Constant *RHS) const override { in CreateFDiv()
79 Constant *CreateURem(Constant *LHS, Constant *RHS) const override { in CreateURem()
[all …]
H A DConstants.h51 class ConstantData : public Constant {
52 friend class Constant; variable
59 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} in ConstantData()
78 friend class Constant; variable
92 static Constant *getTrue(Type *Ty);
93 static Constant *getFalse(Type *Ty);
94 static Constant *getBool(Type *Ty, bool V);
98 static Constant *get(Type *Ty, uint64_t V, bool IsSigned = false);
114 static Constant *getSigned(Type *Ty, int64_t V);
126 static Constant *get(Type *Ty, const APInt &V);
[all …]
H A DIRBuilderFolder.h32 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 *RHS,
40 virtual Value *CreateFMul(Constant *LHS, Constant *RHS) const = 0;
41 virtual Value *CreateUDiv(Constant *LHS, Constant *RHS,
43 virtual Value *CreateSDiv(Constant *LHS, Constant *RHS,
45 virtual Value *CreateFDiv(Constant *LHS, Constant *RHS) const = 0;
46 virtual Value *CreateURem(Constant *LHS, Constant *RHS) const = 0;
[all …]
H A DNoFolder.h44 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const override { in CreateFAdd()
57 Instruction *CreateSub(Constant *LHS, Constant *RHS,
66 Instruction *CreateFSub(Constant *LHS, Constant *RHS) const override { in CreateFSub()
70 Instruction *CreateMul(Constant *LHS, Constant *RHS,
79 Instruction *CreateFMul(Constant *LHS, Constant *RHS) const override { in CreateFMul()
83 Instruction *CreateUDiv(Constant *LHS, Constant *RHS,
90 Instruction *CreateSDiv(Constant *LHS, Constant *RHS,
97 Instruction *CreateFDiv(Constant *LHS, Constant *RHS) const override { in CreateFDiv()
101 Instruction *CreateURem(Constant *LHS, Constant *RHS) const override { in CreateURem()
[all …]
H A DConstant.h41 class Constant : public User {
43 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() function
46 ~Constant() = default;
49 void operator=(const Constant &) = delete;
50 Constant(const Constant &) = delete;
145 Constant *getAggregateElement(unsigned Elt) const;
146 Constant *getAggregateElement(Constant *Elt) const;
151 Constant *getSplatValue(bool AllowUndefs = false) const;
184 static Constant *getNullValue(Type* Ty);
189 static Constant *getAllOnesValue(Type* Ty);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h36 Constant *Fold(Constant *C) const { in Fold()
49 Constant *CreateAdd(Constant *LHS, Constant *RHS,
53 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const override { in CreateFAdd()
56 Constant *CreateSub(Constant *LHS, Constant *RHS,
60 Constant *CreateFSub(Constant *LHS, Constant *RHS) const override { in CreateFSub()
63 Constant *CreateMul(Constant *LHS, Constant *RHS,
67 Constant *CreateFMul(Constant *LHS, Constant *RHS) const override { in CreateFMul()
70 Constant *CreateUDiv(Constant *LHS, Constant *RHS,
74 Constant *CreateSDiv(Constant *LHS, Constant *RHS,
78 Constant *CreateFDiv(Constant *LHS, Constant *RHS) const override { in CreateFDiv()
[all …]
H A DConstantFolding.h26 class Constant; variable
40 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset,
49 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
55 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL,
64 Constant *ConstantFoldInstOperands(Instruction *I, ArrayRef<Constant *> Ops,
72 Constant *
73 ConstantFoldCompareInstOperands(unsigned Predicate, Constant *LHS,
74 Constant *RHS, const DataLayout &DL,
80 Constant *ConstantFoldUnaryOpOperand(unsigned Opcode, Constant *Op,
86 Constant *ConstantFoldBinaryOpOperands(unsigned Opcode, Constant *LHS,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantFold.h26 class Constant; variable
30 Constant *ConstantFoldCastInstruction(
32 Constant *V, ///< The source constant
35 Constant *ConstantFoldSelectInstruction(Constant *Cond,
36 Constant *V1, Constant *V2);
37 Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx);
38 Constant *ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt,
39 Constant *Idx);
40 Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
[all …]
H A DConstants.cpp40 bool Constant::isNegativeZeroValue() const { in isNegativeZeroValue()
66 bool Constant::isZeroValue() const { in isZeroValue()
86 bool Constant::isNullValue() const { in isNullValue()
101 bool Constant::isAllOnesValue() const { in isAllOnesValue()
112 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue()
127 bool Constant::isOneValue() const { in isOneValue()
138 if (Constant *Splat = CV->getSplatValue()) in isOneValue()
153 bool Constant::isNotOneValue() const { in isNotOneValue()
166 Constant *Elt = this->getAggregateElement(i); in isNotOneValue()
177 bool Constant::isMinSignedValue() const { in isMinSignedValue()
[all …]
H A DConstantFold.cpp45 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector()
47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
64 if (Constant *Splat = CV->getSplatValue()) { in BitCastConstantVector()
69 SmallVector<Constant*, 16> Result; in BitCastConstantVector()
72 Constant *C = in BitCastConstantVector()
111 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast()
124 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast()
148 return Constant::getNullValue(DestTy); in FoldBitCast()
214 static Constant *ExtractConstantBytes(Constant *C, unsigned ByteStart, in ExtractConstantBytes()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
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 *tryEmitAbstract(const APValue &value, QualType T);
[all …]
H A DCGExprConstant.cpp47 CharUnits getAlignment(const llvm::Constant *C) const { in getAlignment()
56 CharUnits getSize(const llvm::Constant *C) const { in getSize()
60 llvm::Constant *getPadding(CharUnits PadSize) const { in getPadding()
67 llvm::Constant *getZeroes(CharUnits ZeroSize) const { in getZeroes()
84 llvm::SmallVector<llvm::Constant*, 32> Elems;
99 static llvm::Constant *buildFrom(CodeGenModule &CGM,
100 ArrayRef<llvm::Constant *> Elems,
115 bool add(llvm::Constant *C, CharUnits Offset, bool AllowOverwrite);
129 llvm::Constant *build(llvm::Type *DesiredTy, bool AllowOversized) const { in build()
142 bool ConstantAggregateBuilder::add(llvm::Constant *C, CharUnits Offset, in add()
[all …]
H A DCodeGenModule.h42 class Constant; variable
256 llvm::Constant *CopyHelper;
257 llvm::Constant *DisposeHelper;
291 Structor(int Priority, llvm::Constant *Initializer, in Structor()
292 llvm::Constant *AssociatedData) in Structor()
296 llvm::Constant *Initializer;
297 llvm::Constant *AssociatedData;
365 typedef llvm::StringMap<llvm::TrackingVH<llvm::Constant> > ReplacementsTy;
371 llvm::SmallVector<std::pair<llvm::GlobalValue *, llvm::Constant *>, 8>
415 std::vector<llvm::Constant*> Annotations;
[all …]
H A DConstantInitBuilder.cpp23 if (Data.is<llvm::Constant*>()) { in getType()
24 return Data.get<llvm::Constant*>()->getType(); in getType()
40 if (Data.is<llvm::Constant*>()) { in installInGlobal()
41 GV->setInitializer(Data.get<llvm::Constant*>()); 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()
[all …]
/netbsd-src/external/bsd/libfido2/dist/windows/
H A Dconst.ps19 -Option Constant
10 New-Variable -Name 'LIBRESSL' -Value 'libressl-3.6.2' -Option Constant
11 New-Variable -Name 'CRYPTO_LIBRARIES' -Value 'crypto-50' -Option Constant
14 New-Variable -Name 'LIBCBOR' -Value 'libcbor-0.10.1' -Option Constant
15 New-Variable -Name 'LIBCBOR_BRANCH' -Value 'v0.10.1' -Option Constant
17 -Option Constant
20 New-Variable -Name 'ZLIB' -Value 'zlib-1.2.13' -Option Constant
21 New-Variable -Name 'ZLIB_BRANCH' -Value 'v1.2.13' -Option Constant
23 -Option Constant
26 New-Variable -Name 'BUILD' -Value "$PSScriptRoot\..\build" -Option Constant
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h51 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType())); in ~Evaluator()
57 bool EvaluateFunction(Function *F, Constant *&RetVal,
58 const SmallVectorImpl<Constant*> &ActualArgs);
60 const DenseMap<Constant *, Constant *> &getMutatedMemory() const { in getMutatedMemory()
72 Constant *getVal(Value *V) { in getVal()
73 if (Constant *CV = dyn_cast<Constant>(V)) return CV; in getVal()
74 Constant *R = ValueStack.back().lookup(V); in getVal()
79 void setVal(Value *V, Constant *C) { in setVal()
84 Constant *castCallResultIfNeeded(Value *CallExpr, Constant *RV);
88 SmallVectorImpl<Constant *> &Formals);
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp76 if (!isa<Constant>(LHS)) in visitBinaryOperator()
77 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS)) in visitBinaryOperator()
79 if (!isa<Constant>(RHS)) in visitBinaryOperator()
80 if (Constant *SimpleRHS = SimplifiedValues.lookup(RHS)) in visitBinaryOperator()
91 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV)) in visitBinaryOperator()
141 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
151 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst()
161 if (Constant *C = in visitCastInst()
176 if (!isa<Constant>(LHS)) in visitCmpInst()
177 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS)) in visitCmpInst()
[all …]
H A DConstantFolding.cpp71 static Constant *foldConstVectorToAPInt(APInt &Result, Type *DestTy, in foldConstVectorToAPInt()
72 Constant *C, Type *SrcEltTy, in foldConstVectorToAPInt()
79 Constant *Element; in foldConstVectorToAPInt()
104 Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) { in FoldBitCast()
110 return Constant::getNullValue(DestTy); in FoldBitCast()
113 return Constant::getAllOnesValue(DestTy); in FoldBitCast()
132 if (Constant *CE = foldConstVectorToAPInt(Result, DestTy, C, in FoldBitCast()
152 Constant *Ops = C; // don't take the address of C! in FoldBitCast()
211 SmallVector<Constant*, 32> Result; in FoldBitCast()
214 Constant *Zero = Constant::getNullValue(DstEltTy); in FoldBitCast()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp47 isSimpleEnoughValueToCommit(Constant *C,
48 SmallPtrSetImpl<Constant *> &SimpleConstants,
60 isSimpleEnoughValueToCommitHelper(Constant *C, in isSimpleEnoughValueToCommitHelper()
61 SmallPtrSetImpl<Constant *> &SimpleConstants, in isSimpleEnoughValueToCommitHelper()
75 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL)) in isSimpleEnoughValueToCommitHelper()
115 isSimpleEnoughValueToCommit(Constant *C, in isSimpleEnoughValueToCommit()
116 SmallPtrSetImpl<Constant *> &SimpleConstants, in isSimpleEnoughValueToCommit()
130 static bool isSimpleEnoughPointerToCommit(Constant *C, const DataLayout &DL) { in isSimpleEnoughPointerToCommit()
181 static Constant *
182 evaluateBitcastFromPtr(Constant *Ptr, const DataLayout &DL, in evaluateBitcastFromPtr()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/config/csky/
H A Dconstraints.md49 ;; Constant integer constraints.
52 "Constant in range [0, 65535]"
57 "Constant in range [1, 32]"
62 "Constant in range [0, 31]"
67 "Constant in range [1, 8]"
72 "Constant in range [1, 4096]"
77 "Constant in range [1, 256]"
82 "Constant in range [0, 4095]"
87 "Constant in range [4, 508] that is divisible by 4"
92 "Constant in range [-256, -1]"
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/config/csky/
H A Dconstraints.md55 ;; Constant integer constraints.
58 "Constant in range [0, 65535]"
63 "Constant in range [1, 32]"
68 "Constant in range [0, 31]"
73 "Constant in range [1, 8]"
78 "Constant in range [1, 4096]"
83 "Constant in range [1, 256]"
88 "Constant in range [0, 4095]"
93 "Constant in range [4, 508] that is divisible by 4"
98 "Constant in range [-256, -1]"
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/
H A Dcmath52 // Constant @f$ \pi @f$.
54 // Constant @f$ \pi / 2 @f$.
56 // Constant @f$ \pi / 3 @f$.
58 // Constant @f$ \pi / 4 @f$.
60 // Constant @f$ \sqrt(\pi / 2) @f$.
62 // Constant @f$ 1 / \pi @f$.
64 // Constant @f$ 2 / \pi @f$.
66 // Constant @f$ 2 / \sqrt(\pi) @f$.
69 // Constant Euler's number @f$ e @f$.
71 // Constant @f$ 1 / e @f$.
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/
H A Dcmath52 // Constant @f$ \pi @f$.
54 // Constant @f$ \pi / 2 @f$.
56 // Constant @f$ \pi / 3 @f$.
58 // Constant @f$ \pi / 4 @f$.
60 // Constant @f$ \sqrt(\pi / 2) @f$.
62 // Constant @f$ 1 / \pi @f$.
64 // Constant @f$ 2 / \pi @f$.
66 // Constant @f$ 2 / \sqrt(\pi) @f$.
69 // Constant Euler's number @f$ e @f$.
71 // Constant @f$ 1 / e @f$.
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h54 llvm::SmallVector<llvm::Constant*, 4> Indices;
59 llvm::SmallVector<llvm::Constant*, 16> Buffer;
77 llvm::GlobalVariable *createGlobal(llvm::Constant *initializer,
85 ConstantInitFuture createFuture(llvm::Constant *initializer);
88 llvm::Constant *initializer);
108 llvm::SmallVectorImpl<llvm::Constant*> &getBuffer() { in getBuffer()
112 const llvm::SmallVectorImpl<llvm::Constant*> &getBuffer() const { in getBuffer()
186 void add(llvm::Constant *value) { in add()
208 void addBitCast(llvm::Constant *value, llvm::Type *type) { in addBitCast()
213 void addAll(llvm::ArrayRef<llvm::Constant *> values) { in addAll()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DValueList.cpp85 if (Constant *PHC = dyn_cast<Constant>(&*OldV)) { in assignValue()
96 Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, Type *Ty) { in getConstantFwdRef()
107 return cast<Constant>(V); in getConstantFwdRef()
111 Constant *C = new ConstantPlaceHolder(Ty, Context); in getConstantFwdRef()
155 SmallVector<Constant *, 64> NewOps; in resolveConstantForwardRefs()
159 Constant *Placeholder = ResolveConstants.back().first; in resolveConstantForwardRefs()
171 if (!isa<Constant>(U) || isa<GlobalValue>(U)) { in resolveConstantForwardRefs()
178 Constant *UserC = cast<Constant>(U); in resolveConstantForwardRefs()
192 std::pair<Constant *, unsigned>(cast<Constant>(*I), 0)); in resolveConstantForwardRefs()
197 NewOps.push_back(cast<Constant>(NewOp)); in resolveConstantForwardRefs()
[all …]

12345678910>>...32