Home
last modified time | relevance | path

Searched refs:IntegerType (Results 1 – 25 of 127) sorted by relevance

123456

/external/ceres-solver/internal/ceres/
Dcompressed_col_sparse_matrix_utils.h69 template <typename IntegerType>
70 void SolveUpperTriangularInPlace(IntegerType num_cols, in SolveUpperTriangularInPlace()
71 const IntegerType* rows, in SolveUpperTriangularInPlace()
72 const IntegerType* cols, in SolveUpperTriangularInPlace()
75 for (IntegerType c = num_cols - 1; c >= 0; --c) { in SolveUpperTriangularInPlace()
77 for (IntegerType idx = cols[c]; idx < cols[c + 1] - 1; ++idx) { in SolveUpperTriangularInPlace()
78 const IntegerType r = rows[idx]; in SolveUpperTriangularInPlace()
90 template <typename IntegerType>
91 void SolveUpperTriangularTransposeInPlace(IntegerType num_cols, in SolveUpperTriangularTransposeInPlace()
92 const IntegerType* rows, in SolveUpperTriangularTransposeInPlace()
[all …]
/external/chromium_org/third_party/WebKit/Source/wtf/
DStringExtrasTest.cpp36 template<typename IntegerType> struct PrintfFormatTrait { static const char format[]; };
72 template<typename IntegerType>
79 const IntegerType min = std::numeric_limits<IntegerType>::min(); in testBoundaries()
81 snprintf(buffer.data(), bufferSize, PrintfFormatTrait<IntegerType>::format, min); in testBoundaries()
84 const IntegerType max = std::numeric_limits<IntegerType>::max(); in testBoundaries()
86 snprintf(buffer.data(), bufferSize, PrintfFormatTrait<IntegerType>::format, max); in testBoundaries()
90 template<typename IntegerType>
98 const IntegerType number = static_cast<IntegerType>(i); in testNumbers()
100 snprintf(buffer.data(), bufferSize, PrintfFormatTrait<IntegerType>::format, number); in testNumbers()
/external/chromium_org/third_party/WebKit/Source/platform/
DCheckedInt.h68 template<typename IntegerType>
74 template<typename IntegerType>
77 static const bool value = IsSupportedPass2<IntegerType>::value;
186 template<typename IntegerType>
189 typedef typename StdintTypeForSizeAndSignedness<sizeof(IntegerType),
193 template<typename IntegerType>
196 static const bool value = IntegerType(-1) <= IntegerType(0);
199 template<typename IntegerType, size_t Size = sizeof(IntegerType)>
203 sizeof(IntegerType) * 2,
204 IsSigned<IntegerType>::value
[all …]
/external/llvm/examples/BrainF/
DBrainF.cpp64 getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL)); in header()
68 getOrInsertFunction("putchar", IntegerType::getInt32Ty(C), in header()
69 IntegerType::getInt32Ty(C), NULL)); in header()
83 Type* IntPtrTy = IntegerType::getInt32Ty(C); in header()
84 Type* Int8Ty = IntegerType::getInt8Ty(C); in header()
150 getOrInsertFunction("puts", IntegerType::getInt32Ty(C), in header()
151 PointerType::getUnqual(IntegerType::getInt8Ty(C)), NULL)); in header()
158 Constant *zero_32 = Constant::getNullValue(IntegerType::getInt32Ty(C)); in header()
210 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop()
224 CreateSExt(tape_0, IntegerType::getInt32Ty(C), tapereg); in readloop()
[all …]
DBrainFDriver.cpp60 getOrInsertFunction("main", IntegerType::getInt32Ty(mod->getContext()), in addMainFunction()
61 IntegerType::getInt32Ty(mod->getContext()), in addMainFunction()
63 IntegerType::getInt8Ty(mod->getContext()))), NULL)); in addMainFunction()
/external/llvm/lib/IR/
DType.cpp59 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy()
126 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
179 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
238 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty()
239 IntegerType *Type::getInt8Ty(LLVMContext &C) { return &C.pImpl->Int8Ty; } in getInt8Ty()
240 IntegerType *Type::getInt16Ty(LLVMContext &C) { return &C.pImpl->Int16Ty; } in getInt16Ty()
241 IntegerType *Type::getInt32Ty(LLVMContext &C) { return &C.pImpl->Int32Ty; } in getInt32Ty()
242 IntegerType *Type::getInt64Ty(LLVMContext &C) { return &C.pImpl->Int64Ty; } in getInt64Ty()
244 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy()
245 return IntegerType::get(C, N); in getIntNTy()
[all …]
DValueTypes.cpp30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
98 if (IntegerType *ITy = dyn_cast<IntegerType>(LLVMTy)) in getExtendedSizeInBits()
186 case MVT::i128: return IntegerType::get(Context, 128); in getTypeForEVT()
245 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); in getVT()
270 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); in getEVT()
DConstantFold.cpp59 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector()
93 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair()
200 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 && in ExtractConstantBytes()
202 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8; in ExtractConstantBytes()
264 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
286 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
298 cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth(); in ExtractConstantBytes()
302 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
322 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes()
372 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf()
[all …]
/external/proguard/src/proguard/classfile/attribute/preverification/
DVerificationTypeFactory.java31 static final IntegerType INTEGER_TYPE = new IntegerType();
43 public static IntegerType createIntegerType() in createIntegerType()
/external/llvm/include/llvm/IR/
DType.h28 class IntegerType; variable
391 static IntegerType *getIntNTy(LLVMContext &C, unsigned N);
392 static IntegerType *getInt1Ty(LLVMContext &C);
393 static IntegerType *getInt8Ty(LLVMContext &C);
394 static IntegerType *getInt16Ty(LLVMContext &C);
395 static IntegerType *getInt32Ty(LLVMContext &C);
396 static IntegerType *getInt64Ty(LLVMContext &C);
DMDBuilder.h89 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange()
150 Type *Int64 = IntegerType::get(Context, 64); in createTBAAStructNode()
164 Type *Int64 = IntegerType::get(Context, 64); in createTBAAStructTypeNode()
178 Type *Int64 = IntegerType::get(Context, 64);
189 Type *Int64 = IntegerType::get(Context, 64); in createTBAAStructTagNode()
DDerivedTypes.h37 class IntegerType : public Type {
41 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() function
58 static IntegerType *get(LLVMContext &C, unsigned NumBits);
377 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
387 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType()
399 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
DDataLayout.h34 class IntegerType; variable
361 IntegerType *getIntPtrType(LLVMContext &C, unsigned AddressSpace = 0) const;
464 return cast<IntegerType>(Ty)->getBitWidth(); in getTypeSizeInBits()
DTypeBuilder.h154 static IntegerType *get(LLVMContext &Context) { \
155 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
183 static IntegerType *get(LLVMContext &C) { in get()
184 return IntegerType::get(C, num_bits); in get()
/external/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp79 IntegerType *BypassType, in insertFastDiv()
187 IntegerType *BypassType, in reuseOrInsertFastDiv()
246 IntegerType *T = cast<IntegerType>(J->getType()); in bypassSlowDivision()
255 IntegerType *BT = IntegerType::get(J->getContext(), BI->second); in bypassSlowDivision()
/external/llvm/unittests/IR/
DInstructionsTest.cpp34 IntegerType* Int1 = IntegerType::get(C, 1); in TEST()
72 IntegerType* Int1 = IntegerType::get(C, 1); in TEST()
217 PointerType *Ptri8Ty = PointerType::get(IntegerType::get(C, 8), 0); in TEST()
218 PointerType *Ptri32Ty = PointerType::get(IntegerType::get(C, 32), 0); in TEST()
384 IntegerType *Int16SizePtr = DL.getIntPtrType(C, 1); in TEST()
385 IntegerType *Int64SizePtr = DL.getIntPtrType(C, 2); in TEST()
DIRBuilderTest.cpp111 IntegerType *Ty1 = Builder.getInt1Ty(); in TEST_F()
112 EXPECT_EQ(Ty1, IntegerType::get(getGlobalContext(), 1)); in TEST_F()
115 IntegerType *IntPtrTy = Builder.getIntPtrTy(DL); in TEST_F()
117 EXPECT_EQ(IntPtrTy, IntegerType::get(getGlobalContext(), IntPtrBitSize)); in TEST_F()
DTypeBuilderTest.cpp44 EXPECT_EQ(IntegerType::get(getGlobalContext(), sizeof(size_t) * CHAR_BIT), in TEST()
46 EXPECT_EQ(IntegerType::get(getGlobalContext(), sizeof(ptrdiff_t) * CHAR_BIT), in TEST()
51 …EXPECT_EQ(IntegerType::get(getGlobalContext(), 1), (TypeBuilder<types::i<1>, true>::get(getGlobalC… in TEST()
52 …EXPECT_EQ(IntegerType::get(getGlobalContext(), 1), (TypeBuilder<types::i<1>, false>::get(getGlobal… in TEST()
53 …EXPECT_EQ(IntegerType::get(getGlobalContext(), 72), (TypeBuilder<types::i<72>, true>::get(getGloba… in TEST()
54 …EXPECT_EQ(IntegerType::get(getGlobalContext(), 72), (TypeBuilder<types::i<72>, false>::get(getGlob… in TEST()
DConstantsTest.cpp22 IntegerType* Int1 = IntegerType::get(getGlobalContext(), 1); in TEST()
103 IntegerType* Int8Ty = Type::getInt8Ty(getGlobalContext()); in TEST()
118 IntegerType *Int128Ty = Type::getIntNTy(getGlobalContext(), 128); in TEST()
/external/proguard/src/proguard/classfile/attribute/preverification/visitor/
DVerificationTypeVisitor.java36 … Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, IntegerType integ… in visitIntegerType()
46 …zz, Method method, CodeAttribute codeAttribute, int offset, int index, IntegerType integ… in visitStackIntegerType()
56 …zz, Method method, CodeAttribute codeAttribute, int offset, int index, IntegerType integ… in visitVariablesIntegerType()
/external/llvm/include/llvm/Analysis/
DPtrUseVisitor.h208 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); in visitPtr()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp935 if (IntegerType *ITy = dyn_cast<IntegerType>(UserTy)) { in INITIALIZE_PASS_DEPENDENCY()
1425 if (IntegerType *OldITy = dyn_cast<IntegerType>(OldTy)) in canConvertValue()
1426 if (IntegerType *NewITy = dyn_cast<IntegerType>(NewTy)) in canConvertValue()
1457 if (IntegerType *OldITy = dyn_cast<IntegerType>(V->getType())) in convertValue()
1458 if (IntegerType *NewITy = dyn_cast<IntegerType>(Ty)) in convertValue()
1607 if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) { in isIntegerWideningViableForSlice()
1622 if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) { in isIntegerWideningViableForSlice()
1661 if (SizeInBits > IntegerType::MAX_INT_BITS) in isIntegerWideningViable()
1701 IntegerType *Ty, uint64_t Offset, in extractInteger()
1704 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger()
[all …]
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
DIDBAny.cpp133 ASSERT(m_type == IntegerType); in integer()
217 : m_type(IntegerType) in IDBAny()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp101 ArgsTy.push_back(PointerType::get(IntegerType::getInt8Ty(Context), 0)); in GenEmptyFunction()
102 ArgsTy.push_back(PointerType::get(IntegerType::getInt32Ty(Context), 0)); in GenEmptyFunction()
103 ArgsTy.push_back(PointerType::get(IntegerType::getInt64Ty(Context), 0)); in GenEmptyFunction()
104 ArgsTy.push_back(IntegerType::getInt32Ty(Context)); in GenEmptyFunction()
105 ArgsTy.push_back(IntegerType::getInt64Ty(Context)); in GenEmptyFunction()
106 ArgsTy.push_back(IntegerType::getInt8Ty(Context)); in GenEmptyFunction()
661 if (it->getType() == IntegerType::getInt1Ty(F->getContext())) in IntroduceControlFlow()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp30 if (IntegerType* ITy = dyn_cast<IntegerType>(Ty)) { in getPromotedType()
91 IntegerType* IntType = IntegerType::get(MI->getContext(), Size<<3); in SimplifyMemTransfer()
173 Type *ITy = IntegerType::get(MI->getContext(), Len*8); // n=1 -> i8. in SimplifyMemSet()
317 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
335 IntegerType *IT = dyn_cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
352 IntegerType *IT = cast<IntegerType>(II->getArgOperand(0)->getType()); in visitCallInst()
446 unsigned BitWidth = cast<IntegerType>(LHS->getType())->getBitWidth(); in visitCallInst()

123456