Home
last modified time | relevance | path

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

12345678910>>...45

/external/swiftshader/third_party/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 …]
DIRBuilder.h391 Constant *Insert(Constant *C, const Twine& = "") const {
502 if (Constant *LC = dyn_cast<Constant>(LHS))
503 if (Constant *RC = dyn_cast<Constant>(RHS))
515 if (Constant *LC = dyn_cast<Constant>(LHS))
516 if (Constant *RC = dyn_cast<Constant>(RHS))
522 if (Constant *LC = dyn_cast<Constant>(LHS))
523 if (Constant *RC = dyn_cast<Constant>(RHS))
535 if (Constant *LC = dyn_cast<Constant>(LHS))
536 if (Constant *RC = dyn_cast<Constant>(RHS))
542 if (Constant *LC = dyn_cast<Constant>(LHS))
[all …]
/external/llvm/include/llvm/IR/
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 …]
DConstants.h48 class ConstantData : public Constant {
54 friend class Constant; variable
60 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} in ConstantData()
81 friend class Constant; variable
87 static Constant *getTrue(Type *Ty);
88 static Constant *getFalse(Type *Ty);
92 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
109 static Constant *getSigned(Type *Ty, int64_t V);
122 static Constant *get(Type* Ty, const APInt& V);
259 friend class Constant; variable
[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 …]
DConstant.h41 class Constant : public User {
42 void operator=(const Constant &) = delete;
43 Constant(const Constant &) = delete;
47 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() function
98 Constant *getAggregateElement(unsigned Elt) const;
99 Constant *getAggregateElement(Constant *Elt) const;
103 Constant *getSplatValue() const;
136 static Constant *getNullValue(Type* Ty);
141 static Constant *getAllOnesValue(Type* Ty);
145 static Constant *getIntegerValue(Type *Ty, const APInt &V);
[all …]
DIRBuilder.h624 Constant *Insert(Constant *C, const Twine& = "") const {
780 if (Constant *LC = dyn_cast<Constant>(LHS))
781 if (Constant *RC = dyn_cast<Constant>(RHS))
794 if (Constant *LC = dyn_cast<Constant>(LHS))
795 if (Constant *RC = dyn_cast<Constant>(RHS))
802 if (Constant *LC = dyn_cast<Constant>(LHS))
803 if (Constant *RC = dyn_cast<Constant>(RHS))
816 if (Constant *LC = dyn_cast<Constant>(LHS))
817 if (Constant *RC = dyn_cast<Constant>(RHS))
824 if (Constant *LC = dyn_cast<Constant>(LHS))
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DConstants.h47 class ConstantInt : public Constant {
60 static Constant *getTrue(Type *Ty);
61 static Constant *getFalse(Type *Ty);
65 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
82 static Constant *getSigned(Type *Ty, int64_t V);
95 static Constant *get(Type* Ty, const APInt& V);
230 class ConstantFP : public Constant {
246 static Constant *getZeroValueForNegation(Type *Ty);
252 static Constant *get(Type* Ty, double V);
253 static Constant *get(Type* Ty, StringRef Str);
[all …]
/external/llvm/include/llvm/Analysis/
DTargetFolder.h36 Constant *Fold(Constant *C) const { in Fold()
38 if (Constant *CF = ConstantFoldConstantExpression(CE, DL)) 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 …]
DConstantFolding.h26 class Constant; variable
37 bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, APInt &Offset,
45 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
51 Constant *
61 Constant *ConstantFoldInstOperands(Instruction *I, ArrayRef<Constant *> Ops,
73 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
74 ArrayRef<Constant *> Ops,
82 Constant *
83 ConstantFoldCompareInstOperands(unsigned Predicate, Constant *LHS,
84 Constant *RHS, const DataLayout &DL,
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
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 bool Constant::isNegativeZeroValue() const { in isNegativeZeroValue()
52 bool Constant::isNullValue() const { in isNullValue()
65 bool Constant::isAllOnesValue() const { in isAllOnesValue()
81 Constant *Constant::getNullValue(Type *Ty) { in getNullValue()
113 Constant *Constant::getIntegerValue(Type *Ty, const APInt &V) { in getIntegerValue()
117 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
125 C = ConstantVector::get(std::vector<Constant *>(VTy->getNumElements(), C)); in getIntegerValue()
130 Constant *Constant::getAllOnesValue(Type *Ty) { in getAllOnesValue()
141 SmallVector<Constant*, 16> Elts; in getAllOnesValue()
148 void Constant::destroyConstantImpl() { in destroyConstantImpl()
[all …]
DConstantFold.cpp44 static Constant *BitCastConstantVector(ConstantVector *CV, in BitCastConstantVector()
47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
65 std::vector<Constant*> Result; in BitCastConstantVector()
98 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast()
110 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast()
142 return Constant::getNullValue(DestTy); in FoldBitCast()
194 static Constant *ExtractConstantBytes(Constant *C, unsigned ByteStart, in ExtractConstantBytes()
221 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
230 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); in ExtractConstantBytes()
[all …]
/external/llvm/lib/IR/
DConstantFold.h25 class Constant; variable
29 Constant *ConstantFoldCastInstruction(
31 Constant *V, ///< The source constant
34 Constant *ConstantFoldSelectInstruction(Constant *Cond,
35 Constant *V1, Constant *V2);
36 Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx);
37 Constant *ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt,
38 Constant *Idx);
39 Constant *ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
40 Constant *Mask);
[all …]
DConstants.cpp40 void Constant::anchor() { } in anchor()
44 bool Constant::isNegativeZeroValue() const { in isNegativeZeroValue()
70 bool Constant::isZeroValue() const { in isZeroValue()
90 bool Constant::isNullValue() const { in isNullValue()
105 bool Constant::isAllOnesValue() const { in isAllOnesValue()
116 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue()
121 if (Constant *Splat = CV->getSplatValue()) in isAllOnesValue()
127 bool Constant::isOneValue() const { in isOneValue()
138 if (Constant *Splat = CV->getSplatValue()) in isOneValue()
143 if (Constant *Splat = CV->getSplatValue()) in isOneValue()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DConstantFolding.h24 class Constant; variable
38 Constant *ConstantFoldInstruction(Instruction *I, const TargetData *TD = 0);
43 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE,
52 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
53 ArrayRef<Constant *> Ops,
60 Constant *ConstantFoldCompareInstOperands(unsigned Predicate,
61 Constant *LHS, Constant *RHS,
67 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
73 Constant *ConstantFoldLoadFromConstPtr(Constant *C, const TargetData *TD = 0);
78 Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE);
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/scanner/
DConstant.java20 public final class Constant { class
31 public final static Constant LINEBR = new Constant(LINEBR_S);
32 public final static Constant FULL_LINEBR = new Constant(FULL_LINEBR_S);
33 public final static Constant NULL_OR_LINEBR = new Constant(NULL_OR_LINEBR_S);
34 public final static Constant NULL_BL_LINEBR = new Constant(NULL_BL_LINEBR_S);
35 public final static Constant NULL_BL_T_LINEBR = new Constant(NULL_BL_T_LINEBR_S);
36 public final static Constant NULL_BL_T = new Constant(NULL_BL_T_S);
37 public final static Constant URI_CHARS = new Constant(URI_CHARS_S);
39 public final static Constant ALPHA = new Constant(ALPHA_S);
45 private Constant(String content) { in Constant() method in Constant
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DConstant.h42 class Constant : public User {
46 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() function
50 void operator=(const Constant &) = delete;
51 Constant(const Constant &) = delete;
100 Constant *getAggregateElement(unsigned Elt) const;
101 Constant *getAggregateElement(Constant *Elt) const;
105 Constant *getSplatValue() const;
138 static Constant *getNullValue(Type* Ty);
143 static Constant *getAllOnesValue(Type* Ty);
147 static Constant *getIntegerValue(Type *Ty, const APInt &V);
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DEvaluator.h50 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType())); in ~Evaluator()
56 bool EvaluateFunction(Function *F, Constant *&RetVal,
57 const SmallVectorImpl<Constant*> &ActualArgs);
64 Constant *getVal(Value *V) { in getVal()
65 if (Constant *CV = dyn_cast<Constant>(V)) return CV; in getVal()
66 Constant *R = ValueStack.back().lookup(V); in getVal()
71 void setVal(Value *V, Constant *C) { in setVal()
75 const DenseMap<Constant*, Constant*> &getMutatedMemory() const { in getMutatedMemory()
84 Constant *ComputeLoadResult(Constant *P);
89 std::deque<DenseMap<Value*, Constant*>> ValueStack;
[all …]
/external/clang/lib/CodeGen/
DCodeGenModule.h41 class Constant; variable
117 llvm::Constant *objc_autoreleasePoolPop;
120 llvm::Constant *objc_autoreleasePoolPush;
123 llvm::Constant *objc_autorelease;
126 llvm::Constant *objc_autoreleaseReturnValue;
129 llvm::Constant *objc_copyWeak;
132 llvm::Constant *objc_destroyWeak;
135 llvm::Constant *objc_initWeak;
138 llvm::Constant *objc_loadWeak;
141 llvm::Constant *objc_loadWeakRetained;
[all …]
/external/llvm/unittests/IR/
DConstantsTest.cpp27 Constant* One = ConstantInt::get(Int1, 1, true); in TEST()
28 Constant* Zero = ConstantInt::get(Int1, 0); in TEST()
29 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST()
31 Constant* Undef = UndefValue::get(Int1); in TEST()
125 Constant *Zero128 = Constant::getNullValue(Int128Ty); in TEST()
126 Constant *X = ConstantExpr::getUIToFP(Zero128, FP128Ty); in TEST()
140 EXPECT_EQ(Constant::getNullValue(Int64Ty), in TEST()
142 Constant::getNullValue(Int8PtrTy), Int64Ty)); in TEST()
145 EXPECT_EQ(Constant::getNullValue(Int32PtrTy), in TEST()
147 Constant::getNullValue(Int8PtrTy), Int32PtrTy)); in TEST()
[all …]
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp72 if (!isa<Constant>(LHS)) in visitBinaryOperator()
73 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS)) in visitBinaryOperator()
75 if (!isa<Constant>(RHS)) in visitBinaryOperator()
76 if (Constant *SimpleRHS = SimplifiedValues.lookup(RHS)) in visitBinaryOperator()
87 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV)) in visitBinaryOperator()
131 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
141 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst()
151 if (Constant *C = in visitCastInst()
166 if (!isa<Constant>(LHS)) in visitCmpInst()
167 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS)) in visitCmpInst()
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DLoopbackApplication.java45 private int mAudioThreadType = Constant.AUDIO_THREAD_TYPE_JAVA; //0:Java, 1:Native (JNI)
56 private int mNumStateCaptures = Constant.DEFAULT_NUM_CAPTURES;
60 mAudioThreadType = Constant.AUDIO_THREAD_TYPE_NATIVE; in setDefaults()
62 mAudioThreadType = Constant.AUDIO_THREAD_TYPE_JAVA; in setDefaults()
73 mSamplingRate = clamp(samplingRate, Constant.SAMPLING_RATE_MIN, Constant.SAMPLING_RATE_MAX); in setSamplingRate()
86 if (isSafeToUseSles() && audioThreadType != Constant.AUDIO_THREAD_TYPE_JAVA) { in setAudioThreadType()
88 mAudioThreadType = Constant.AUDIO_THREAD_TYPE_NATIVE; in setAudioThreadType()
90 mAudioThreadType = Constant.AUDIO_THREAD_TYPE_JAVA; in setAudioThreadType()
104 if (threadType == Constant.AUDIO_THREAD_TYPE_JAVA) { in mapMicSource()
133 } else if (threadType == Constant.AUDIO_THREAD_TYPE_NATIVE) { in mapMicSource()
[all …]

12345678910>>...45