Home
last modified time | relevance | path

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

12345678910>>...23

/external/llvm/include/llvm/Support/
DConstantFolder.h34 Constant *CreateAdd(Constant *LHS, Constant *RHS,
38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd()
41 Constant *CreateSub(Constant *LHS, Constant *RHS,
45 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub()
48 Constant *CreateMul(Constant *LHS, Constant *RHS,
52 Constant *CreateFMul(Constant *LHS, Constant *RHS) const { in CreateFMul()
55 Constant *CreateUDiv(Constant *LHS, Constant *RHS,
59 Constant *CreateSDiv(Constant *LHS, Constant *RHS,
63 Constant *CreateFDiv(Constant *LHS, Constant *RHS) const { in CreateFDiv()
66 Constant *CreateURem(Constant *LHS, Constant *RHS) const { in CreateURem()
[all …]
DTargetFolder.h36 Constant *Fold(Constant *C) const { in Fold()
38 if (Constant *CF = ConstantFoldConstantExpression(CE, TD)) in Fold()
50 Constant *CreateAdd(Constant *LHS, Constant *RHS,
54 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd()
57 Constant *CreateSub(Constant *LHS, Constant *RHS,
61 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub()
64 Constant *CreateMul(Constant *LHS, Constant *RHS,
68 Constant *CreateFMul(Constant *LHS, Constant *RHS) const { in CreateFMul()
71 Constant *CreateUDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{
74 Constant *CreateSDiv(Constant *LHS, Constant *RHS, bool isExact = false)const{
[all …]
DNoFolder.h40 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { in CreateNSWAdd()
50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { in CreateNUWAdd()
53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd()
56 Instruction *CreateSub(Constant *LHS, Constant *RHS,
63 Instruction *CreateNSWSub(Constant *LHS, Constant *RHS) const { in CreateNSWSub()
66 Instruction *CreateNUWSub(Constant *LHS, Constant *RHS) const { in CreateNUWSub()
69 Instruction *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub()
72 Instruction *CreateMul(Constant *LHS, Constant *RHS,
79 Instruction *CreateNSWMul(Constant *LHS, Constant *RHS) const { in CreateNSWMul()
[all …]
/external/llvm/include/llvm/IR/
DConstants.h51 class ConstantInt : public Constant {
65 static Constant *getTrue(Type *Ty);
66 static Constant *getFalse(Type *Ty);
70 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
87 static Constant *getSigned(Type *Ty, int64_t V);
100 static Constant *get(Type* Ty, const APInt& V);
232 class ConstantFP : public Constant {
249 static Constant *getZeroValueForNegation(Type *Ty);
255 static Constant *get(Type* Ty, double V);
256 static Constant *get(Type* Ty, StringRef Str);
[all …]
DIRBuilder.h440 Constant *Insert(Constant *C, const Twine& = "") const {
575 if (Constant *LC = dyn_cast<Constant>(LHS))
576 if (Constant *RC = dyn_cast<Constant>(RHS))
589 if (Constant *LC = dyn_cast<Constant>(LHS))
590 if (Constant *RC = dyn_cast<Constant>(RHS))
597 if (Constant *LC = dyn_cast<Constant>(LHS))
598 if (Constant *RC = dyn_cast<Constant>(RHS))
611 if (Constant *LC = dyn_cast<Constant>(LHS))
612 if (Constant *RC = dyn_cast<Constant>(RHS))
619 if (Constant *LC = dyn_cast<Constant>(LHS))
[all …]
DConstant.h41 class Constant : public User {
42 void operator=(const Constant &) LLVM_DELETED_FUNCTION;
43 Constant(const Constant &) LLVM_DELETED_FUNCTION;
47 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() function
104 Constant *getAggregateElement(unsigned Elt) const;
105 Constant *getAggregateElement(Constant *Elt) const;
109 Constant *getSplatValue() const;
150 static Constant *getNullValue(Type* Ty);
155 static Constant *getAllOnesValue(Type* Ty);
159 static Constant *getIntegerValue(Type* Ty, const APInt &V);
/external/llvm/lib/IR/
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,
41 Constant *Mask);
[all …]
DConstants.cpp43 void Constant::anchor() { } in anchor()
45 bool Constant::isNegativeZeroValue() const { in isNegativeZeroValue()
66 bool Constant::isZeroValue() const { in isZeroValue()
75 bool Constant::isNullValue() const { in isNullValue()
88 bool Constant::isAllOnesValue() const { in isAllOnesValue()
99 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue()
104 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue()
111 Constant *Constant::getNullValue(Type *Ty) { in getNullValue()
146 Constant *Constant::getIntegerValue(Type *Ty, const APInt &V) { in getIntegerValue()
150 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
[all …]
DConstantFold.cpp44 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector()
46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
47 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
58 SmallVector<Constant*, 16> Result; in BitCastConstantVector()
61 Constant *C = in BitCastConstantVector()
100 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast()
113 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast()
145 return Constant::getNullValue(DestTy); in FoldBitCast()
197 static Constant *ExtractConstantBytes(Constant *C, unsigned ByteStart, in ExtractConstantBytes()
224 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
[all …]
/external/llvm/include/llvm/Analysis/
DConstantFolding.h24 class Constant; variable
39 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout *TD = 0,
45 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE,
55 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
56 ArrayRef<Constant *> Ops,
64 Constant *ConstantFoldCompareInstOperands(unsigned Predicate,
65 Constant *LHS, Constant *RHS,
72 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
78 Constant *ConstantFoldLoadFromConstPtr(Constant *C, const DataLayout *TD = 0);
83 Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE);
[all …]
/external/clang/lib/CodeGen/
DCodeGenModule.h38 class Constant; variable
159 llvm::Constant *objc_autoreleasePoolPop;
162 llvm::Constant *objc_autoreleasePoolPush;
169 llvm::Constant *objc_autorelease;
172 llvm::Constant *objc_autoreleaseReturnValue;
175 llvm::Constant *objc_copyWeak;
178 llvm::Constant *objc_destroyWeak;
181 llvm::Constant *objc_initWeak;
184 llvm::Constant *objc_loadWeak;
187 llvm::Constant *objc_loadWeakRetained;
[all …]
DCGObjCGNU.cpp51 llvm::Constant *Function;
77 operator llvm::Constant*() { in operator llvm::Constant*()
85 cast<llvm::Constant>(CGM->CreateRuntimeFunction(FTy, FunctionName)); in operator llvm::Constant*()
93 return cast<llvm::Function>((llvm::Constant*)*this); in operator llvm::Function*()
171 llvm::Constant *MakeConstantString(const std::string &Str, in MakeConstantString()
173 llvm::Constant *ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str()); in MakeConstantString()
180 llvm::Constant *ExportUniqueString(const std::string &Str, in ExportUniqueString()
183 llvm::Constant *ConstStr = TheModule.getGlobalVariable(name); in ExportUniqueString()
185 llvm::Constant *value = llvm::ConstantDataArray::getString(VMContext,Str); in ExportUniqueString()
195 ArrayRef<llvm::Constant *> V, in MakeGlobal()
[all …]
DCGExprConstant.cpp43 SmallVector<llvm::Constant *, 32> Elements;
45 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
47 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF,
56 void AppendVTablePointer(BaseSubobject Base, llvm::Constant *VTable,
60 llvm::Constant *InitExpr);
62 void AppendBytes(CharUnits FieldOffsetInChars, llvm::Constant *InitCst);
75 llvm::Constant *VTable, const CXXRecordDecl *VTableClass,
77 llvm::Constant *Finalize(QualType Ty);
79 CharUnits getAlignment(const llvm::Constant *C) const { in getAlignment()
85 CharUnits getSizeInChars(const llvm::Constant *C) const { in getSizeInChars()
[all …]
DCGObjCRuntime.h25 class Constant; variable
100 llvm::Constant *beginCatchFn,
101 llvm::Constant *endCatchFn,
102 llvm::Constant *exceptionRethrowFn);
133 virtual llvm::Constant *GetEHType(QualType T) = 0;
136 virtual llvm::Constant *GenerateConstantString(const StringLiteral *) = 0;
199 virtual llvm::Constant *GetPropertyGetFunction() = 0;
202 virtual llvm::Constant *GetPropertySetFunction() = 0;
205 virtual llvm::Constant *GetOptimizedPropertySetFunction(bool atomic,
209 virtual llvm::Constant *GetGetStructFunction() = 0;
[all …]
DCGObjCMac.cpp60 llvm::Constant *getMessageSendFn() const { in getMessageSendFn()
78 llvm::Constant *getMessageSendStretFn() const { in getMessageSendStretFn()
91 llvm::Constant *getMessageSendFpretFn() const { in getMessageSendFpretFn()
104 llvm::Constant *getMessageSendFp2retFn() const { in getMessageSendFp2retFn()
120 llvm::Constant *getMessageSendSuperFn() const { in getMessageSendSuperFn()
131 llvm::Constant *getMessageSendSuperFn2() const { in getMessageSendSuperFn2()
142 llvm::Constant *getMessageSendSuperStretFn() const { in getMessageSendSuperStretFn()
153 llvm::Constant *getMessageSendSuperStretFn2() const { in getMessageSendSuperStretFn2()
160 llvm::Constant *getMessageSendSuperFpretFn() const { in getMessageSendSuperFpretFn()
165 llvm::Constant *getMessageSendSuperFpretFn2() const { in getMessageSendSuperFpretFn2()
[all …]
/external/llvm/lib/Transforms/ObjCARC/
DARCRuntimeEntryPoints.h72 Constant *get(const EntryPointType entry) { in get()
108 Constant *AutoreleaseRV;
110 Constant *Release;
112 Constant *Retain;
114 Constant *RetainBlock;
116 Constant *Autorelease;
118 Constant *StoreStrong;
120 Constant *RetainRV;
122 Constant *RetainAutorelease;
124 Constant *RetainAutoreleaseRV;
[all …]
/external/clang/test/SemaTemplate/
Dinstantiation-default-2.cpp3 template<typename T, T Value> struct Constant; // expected-note{{template parameter is declared her…
6 Constant<int, 5> *c1;
11 Constant<int&, x> *c2;
12 Constant<int*, &x> *c3;
13 Constant<float (*)(int, double), f> *c4;
14 Constant<float (*)(int, double), &f> *c5;
16 Constant<float (*)(int, int), f> *c6; // expected-error{{non-type template argument of type 'float …
18 Constant<float, 0> *c7; // expected-note{{while substituting}}
/external/llvm/unittests/IR/
DConstantsTest.cpp23 Constant* One = ConstantInt::get(Int1, 1, true); in TEST()
24 Constant* Zero = ConstantInt::get(Int1, 0); in TEST()
25 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST()
27 Constant* Undef = UndefValue::get(Int1); in TEST()
119 Constant *Zero128 = Constant::getNullValue(Int128Ty); in TEST()
120 Constant *X = ConstantExpr::getUIToFP(Zero128, FP128Ty); in TEST()
134 EXPECT_EQ(Constant::getNullValue(Int64Ty), in TEST()
136 Constant::getNullValue(Int8PtrTy), Int64Ty)); in TEST()
139 EXPECT_EQ(Constant::getNullValue(Int32PtrTy), in TEST()
141 Constant::getNullValue(Int8PtrTy), Int32PtrTy)); in TEST()
[all …]
/external/proguard/src/proguard/classfile/editor/
DConstantPoolEditor.java56 Constant[] constantPool = targetClass.constantPool; in addIntegerConstant()
61 Constant constant = constantPool[index]; in addIntegerConstant()
85 Constant[] constantPool = targetClass.constantPool; in addLongConstant()
90 Constant constant = constantPool[index]; in addLongConstant()
115 Constant[] constantPool = targetClass.constantPool; in addFloatConstant()
120 Constant constant = constantPool[index]; in addFloatConstant()
145 Constant[] constantPool = targetClass.constantPool; in addDoubleConstant()
150 Constant constant = constantPool[index]; in addDoubleConstant()
177 Constant[] constantPool = targetClass.constantPool; in addStringConstant()
182 Constant constant = constantPool[index]; in addStringConstant()
[all …]
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
DStdConstantPool.java30 private final Constant[] entries;
47 entries = new Constant[size]; in StdConstantPool()
56 public Constant getOrNull(int n) { in getOrNull()
66 public Constant get0Ok(int n) { in get0Ok()
75 public Constant get(int n) { in get()
77 Constant result = entries[n]; in get()
96 public void set(int n, Constant cst) { in set()
119 Constant prev = entries[n - 1]; in set()
135 private static Constant throwInvalid(int idx) { in throwInvalid()
DCstArray.java25 public final class CstArray extends Constant {
62 protected int compareTo0(Constant other) { in compareTo0()
120 Constant thisItem = (Constant) get0(i); in compareTo()
121 Constant otherItem = (Constant) other.get0(i); in compareTo()
145 public Constant get(int n) { in get()
146 return (Constant) get0(n); in get()
155 public void set(int n, Constant a) { in set()
/external/llvm/lib/Analysis/
DConstantFolding.cpp48 static Constant *FoldBitCast(Constant *C, Type *DestTy, in FoldBitCast()
52 return Constant::getNullValue(DestTy); in FoldBitCast()
54 return Constant::getAllOnesValue(DestTy); in FoldBitCast()
102 Constant *Ops = C; // don't take the address of C! in FoldBitCast()
161 SmallVector<Constant*, 32> Result; in FoldBitCast()
164 Constant *Zero = Constant::getNullValue(DstEltTy); in FoldBitCast()
170 Constant *Elt = Zero; in FoldBitCast()
173 Constant *Src =dyn_cast<ConstantInt>(C->getAggregateElement(SrcElt++)); in FoldBitCast()
199 Constant *Src = dyn_cast<ConstantInt>(C->getAggregateElement(i)); in FoldBitCast()
207 Constant *Elt = ConstantExpr::getLShr(Src, in FoldBitCast()
[all …]
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp76 DenseMap<Value *, Constant *> SimplifiedValues;
239 if (!isa<Constant>(*I) && !SimplifiedValues.lookup(*I)) in isGEPOffsetConstant()
260 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand())) in accumulateGEPOffset()
366 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitBitCast()
370 if (Constant *C = ConstantExpr::getBitCast(COp, I.getType())) { in visitBitCast()
394 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitPtrToInt()
398 if (Constant *C = ConstantExpr::getPtrToInt(COp, I.getType())) { in visitPtrToInt()
430 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitIntToPtr()
434 if (Constant *C = ConstantExpr::getIntToPtr(COp, I.getType())) { in visitIntToPtr()
460 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst()
[all …]
/external/dexmaker/src/dx/java/com/android/dx/rop/code/
DFillArrayDataInsn.java19 import com.android.dx.rop.cst.Constant;
34 private final ArrayList<Constant> initValues;
40 private final Constant arrayType;
53 ArrayList<Constant> initValues, in FillArrayDataInsn()
54 Constant cst) { in FillArrayDataInsn()
76 public ArrayList<Constant> getInitValues() { in getInitValues()
84 public Constant getConstant() { in getConstant()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp176 static bool SafeToDestroyConstant(const Constant *C) { in SafeToDestroyConstant()
181 if (const Constant *CU = dyn_cast<Constant>(*UI)) { in SafeToDestroyConstant()
236 if (Constant *C = dyn_cast<Constant>(StoredVal)) { in AnalyzeGlobal()
289 } else if (const Constant *C = dyn_cast<Constant>(U)) { in AnalyzeGlobal()
356 if (isa<Constant>(V)) in IsSafeComputationToRemove()
407 if (isa<Constant>(V)) { in CleanupPointerRootUsers()
415 if (isa<Constant>(MSI->getValue())) { in CleanupPointerRootUsers()
436 } else if (Constant *C = dyn_cast<Constant>(U)) { in CleanupPointerRootUsers()
471 static bool CleanupConstantGlobalUsers(Value *V, Constant *Init, in CleanupConstantGlobalUsers()
491 Constant *SubInit = 0; in CleanupConstantGlobalUsers()
[all …]

12345678910>>...23