/external/llvm/unittests/AsmParser/ |
D | AsmParserTest.cpp | 178 Type *Ty; in TEST() local 179 Ty = parseType("i32", Error, M, &Mapping); in TEST() 180 ASSERT_TRUE(Ty); in TEST() 181 ASSERT_TRUE(Ty->isIntegerTy()); in TEST() 182 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); in TEST() 185 Ty = parseType("i13", Error, M, &Mapping); in TEST() 186 ASSERT_TRUE(Ty); in TEST() 187 ASSERT_TRUE(Ty->isIntegerTy()); in TEST() 188 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 13); in TEST() 191 Ty = parseType("float", Error, M, &Mapping); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/AsmParser/ |
D | AsmParserTest.cpp | 178 Type *Ty; in TEST() local 179 Ty = parseType("i32", Error, M, &Mapping); in TEST() 180 ASSERT_TRUE(Ty); in TEST() 181 ASSERT_TRUE(Ty->isIntegerTy()); in TEST() 182 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); in TEST() 185 Ty = parseType("i13", Error, M, &Mapping); in TEST() 186 ASSERT_TRUE(Ty); in TEST() 187 ASSERT_TRUE(Ty->isIntegerTy()); in TEST() 188 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 13); in TEST() 191 Ty = parseType("float", Error, M, &Mapping); in TEST() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTypes.cpp | 147 size_t typeWidthInBytes(Type Ty) { in typeWidthInBytes() argument 148 int8_t Shift = typeWidthInBytesLog2(Ty); in typeWidthInBytes() 152 int8_t typeWidthInBytesLog2(Type Ty) { in typeWidthInBytesLog2() argument 153 if (Ty < IceType_NUM) in typeWidthInBytesLog2() 154 return TypeAttributes[Ty].TypeWidthInBytesLog2; in typeWidthInBytesLog2() 159 size_t typeAlignInBytes(Type Ty) { in typeAlignInBytes() argument 160 if (Ty < IceType_NUM) in typeAlignInBytes() 161 return TypeAttributes[Ty].TypeAlignInBytes; in typeAlignInBytes() 166 size_t typeNumElements(Type Ty) { in typeNumElements() argument 167 if (Ty < IceType_NUM) in typeNumElements() [all …]
|
D | IceAssemblerX86Base.h | 303 void mov(Type Ty, GPRRegister dst, const Immediate &src); 304 void mov(Type Ty, GPRRegister dst, GPRRegister src); 305 void mov(Type Ty, GPRRegister dst, const Address &src); 306 void mov(Type Ty, const Address &dst, GPRRegister src); 307 void mov(Type Ty, const Address &dst, const Immediate &imm); 318 void movzx(Type Ty, GPRRegister dst, GPRRegister src); 319 void movzx(Type Ty, GPRRegister dst, const Address &src); 320 void movsx(Type Ty, GPRRegister dst, GPRRegister src); 321 void movsx(Type Ty, GPRRegister dst, const Address &src); 323 void lea(Type Ty, GPRRegister dst, const Address &src); [all …]
|
D | IceTypes.h | 79 size_t typeWidthInBytes(Type Ty); 80 int8_t typeWidthInBytesLog2(Type Ty); 81 size_t typeAlignInBytes(Type Ty); 82 size_t typeNumElements(Type Ty); 83 Type typeElementType(Type Ty); 84 const char *typeString(Type Ty); 85 inline std::string typeStdString(Type Ty) { return typeString(Ty); } in typeStdString() argument 90 bool isVectorType(Type Ty); 92 bool isBooleanType(Type Ty); // scalar or vector 93 bool isIntegerType(Type Ty); // scalar or vector [all …]
|
D | IceAssemblerX86BaseImpl.h | 230 void AssemblerX86Base<TraitsType>::mov(Type Ty, GPRRegister dst, in mov() argument 232 assert(Ty != IceType_i64 && "i64 not supported yet."); in mov() 234 if (Ty == IceType_i16) in mov() 236 emitRexB(Ty, dst); in mov() 237 if (isByteSizedType(Ty)) { in mov() 244 emitImmediate(Ty, imm); in mov() 249 void AssemblerX86Base<TraitsType>::mov(Type Ty, GPRRegister dst, in mov() argument 252 if (Ty == IceType_i16) in mov() 254 emitRexRB(Ty, src, dst); in mov() 255 if (isByteSizedType(Ty)) { in mov() [all …]
|
/external/llvm/test/Transforms/DeadArgElim/ |
D | returned.ll | 3 %Ty = type { i32, i32 } 8 define internal %Ty* @test1(%Ty* %this) { 9 ret %Ty* %this 15 define internal %Ty* @test2(%Ty* returned %this) { 16 ret %Ty* %this 20 @dummy = global %Ty* null 23 ; CHECK-LABEL: define internal void @test3(%Ty* %this) 25 define internal %Ty* @test3(%Ty* %this) { 26 store volatile %Ty* %this, %Ty** @dummy 27 ret %Ty* %this [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/DeadArgElim/ |
D | returned.ll | 3 %Ty = type { i32, i32 } 8 define internal %Ty* @test1(%Ty* %this) { 9 ret %Ty* %this 15 define internal %Ty* @test2(%Ty* returned %this) { 16 ret %Ty* %this 20 @dummy = global %Ty* null 23 ; CHECK-LABEL: define internal void @test3(%Ty* %this) 25 define internal %Ty* @test3(%Ty* %this) { 26 store volatile %Ty* %this, %Ty** @dummy 27 ret %Ty* %this [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86LegalizerInfo.cpp | 98 for (auto Ty : {p0, s1, s8, s16, s32}) in setLegalizerInfo32bit() 99 setAction({G_IMPLICIT_DEF, Ty}, Legal); in setLegalizerInfo32bit() 101 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 102 setAction({G_PHI, Ty}, Legal); in setLegalizerInfo32bit() 105 for (auto Ty : {s8, s16, s32}) in setLegalizerInfo32bit() 106 setAction({BinOp, Ty}, Legal); in setLegalizerInfo32bit() 114 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 115 setAction({MemOp, Ty}, Legal); in setLegalizerInfo32bit() 145 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 146 setAction({TargetOpcode::G_CONSTANT, Ty}, Legal); in setLegalizerInfo32bit() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/ |
D | LowLevelTypeTest.cpp | 22 operator<<(std::ostream &OS, const llvm::LLT Ty) { in operator <<() argument 25 Ty.print(SS); in operator <<() 38 const LLT Ty = LLT::scalar(S); in TEST() local 41 ASSERT_TRUE(Ty.isValid()); in TEST() 42 ASSERT_TRUE(Ty.isScalar()); in TEST() 44 ASSERT_FALSE(Ty.isPointer()); in TEST() 45 ASSERT_FALSE(Ty.isVector()); in TEST() 48 EXPECT_EQ(S, Ty.getSizeInBits()); in TEST() 49 EXPECT_EQ(S, Ty.getScalarSizeInBits()); in TEST() 52 EXPECT_TRUE(Ty == Ty); in TEST() [all …]
|
/external/llvm/lib/IR/ |
D | Constants.cpp | 195 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument 196 switch (Ty->getTypeID()) { in getNullValue() 198 return ConstantInt::get(Ty, 0); in getNullValue() 200 return ConstantFP::get(Ty->getContext(), in getNullValue() 203 return ConstantFP::get(Ty->getContext(), in getNullValue() 206 return ConstantFP::get(Ty->getContext(), in getNullValue() 209 return ConstantFP::get(Ty->getContext(), in getNullValue() 212 return ConstantFP::get(Ty->getContext(), in getNullValue() 215 return ConstantFP::get(Ty->getContext(), in getNullValue() 219 return ConstantPointerNull::get(cast<PointerType>(Ty)); in getNullValue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Constants.cpp | 268 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument 269 switch (Ty->getTypeID()) { in getNullValue() 271 return ConstantInt::get(Ty, 0); in getNullValue() 273 return ConstantFP::get(Ty->getContext(), in getNullValue() 276 return ConstantFP::get(Ty->getContext(), in getNullValue() 279 return ConstantFP::get(Ty->getContext(), in getNullValue() 282 return ConstantFP::get(Ty->getContext(), in getNullValue() 285 return ConstantFP::get(Ty->getContext(), in getNullValue() 288 return ConstantFP::get(Ty->getContext(), in getNullValue() 292 return ConstantPointerNull::get(cast<PointerType>(Ty)); in getNullValue() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Constants.cpp | 81 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument 82 switch (Ty->getTypeID()) { in getNullValue() 84 return ConstantInt::get(Ty, 0); in getNullValue() 86 return ConstantFP::get(Ty->getContext(), in getNullValue() 89 return ConstantFP::get(Ty->getContext(), in getNullValue() 92 return ConstantFP::get(Ty->getContext(), in getNullValue() 95 return ConstantFP::get(Ty->getContext(), in getNullValue() 98 return ConstantFP::get(Ty->getContext(), in getNullValue() 101 return ConstantPointerNull::get(cast<PointerType>(Ty)); in getNullValue() 105 return ConstantAggregateZero::get(Ty); in getNullValue() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 54 GenericValue Src2, Type *Ty) { in executeFAddInst() argument 55 switch (Ty->getTypeID()) { in executeFAddInst() 59 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst() 65 GenericValue Src2, Type *Ty) { in executeFSubInst() argument 66 switch (Ty->getTypeID()) { in executeFSubInst() 70 dbgs() << "Unhandled type for FSub instruction: " << *Ty << "\n"; in executeFSubInst() 76 GenericValue Src2, Type *Ty) { in executeFMulInst() argument 77 switch (Ty->getTypeID()) { in executeFMulInst() 81 dbgs() << "Unhandled type for FMul instruction: " << *Ty << "\n"; in executeFMulInst() 87 GenericValue Src2, Type *Ty) { in executeFDivInst() argument [all …]
|
/external/clang/lib/CodeGen/ |
D | TargetInfo.cpp | 48 static ABIArgInfo coerceToIntArray(QualType Ty, in coerceToIntArray() argument 52 const uint64_t Size = Context.getTypeSize(Ty); in coerceToIntArray() 53 const uint64_t Alignment = Context.getTypeAlign(Ty); in coerceToIntArray() 78 ABIInfo::getNaturalAlignIndirect(QualType Ty, bool ByRef, bool Realign, in getNaturalAlignIndirect() argument 80 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirect() 85 ABIInfo::getNaturalAlignIndirectInReg(QualType Ty, bool Realign) const { in getNaturalAlignIndirectInReg() argument 86 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg() 91 QualType Ty) const { in EmitMSVAArg() 155 static QualType useFirstFieldIfTransparentUnion(QualType Ty) { in useFirstFieldIfTransparentUnion() argument 156 if (const RecordType *UT = Ty->getAsUnionType()) { in useFirstFieldIfTransparentUnion() [all …]
|
/external/swiftshader/third_party/LLVM/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 46 Type *Ty = Type::getInt1Ty(Context); in TEST_F() local 47 Constant *Init = Constant::getNullValue(Ty); in TEST_F() 48 Value *V0 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V0"); in TEST_F() 49 Value *V1 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V1"); in TEST_F() 50 Value *V2 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V2"); in TEST_F() 91 Type *Ty = Type::getInt32Ty(Context); in TEST_F() local 93 Types.append(10, Ty); in TEST_F() 161 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); in TEST_F() 163 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); in TEST_F() 164 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[2])); in TEST_F() [all …]
|
/external/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 57 Type *Ty = Type::getInt1Ty(Context); in TEST_F() local 58 Constant *Init = Constant::getNullValue(Ty); in TEST_F() 59 Value *V0 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V0"); in TEST_F() 60 Value *V1 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V1"); in TEST_F() 61 Value *V2 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V2"); in TEST_F() 100 Type *Ty = Type::getInt32Ty(Context); in TEST_F() local 102 Types.append(10, Ty); in TEST_F() 168 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); in TEST_F() 170 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); in TEST_F() 171 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[2])); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 56 GenericValue Src2, Type *Ty) { in executeFAddInst() argument 57 switch (Ty->getTypeID()) { in executeFAddInst() 61 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst() 67 GenericValue Src2, Type *Ty) { in executeFSubInst() argument 68 switch (Ty->getTypeID()) { in executeFSubInst() 72 dbgs() << "Unhandled type for FSub instruction: " << *Ty << "\n"; in executeFSubInst() 78 GenericValue Src2, Type *Ty) { in executeFMulInst() argument 79 switch (Ty->getTypeID()) { in executeFMulInst() 83 dbgs() << "Unhandled type for FMul instruction: " << *Ty << "\n"; in executeFMulInst() 89 GenericValue Src2, Type *Ty) { in executeFDivInst() argument [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 56 GenericValue Src2, Type *Ty) { in executeFAddInst() argument 57 switch (Ty->getTypeID()) { in executeFAddInst() 61 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst() 67 GenericValue Src2, Type *Ty) { in executeFSubInst() argument 68 switch (Ty->getTypeID()) { in executeFSubInst() 72 dbgs() << "Unhandled type for FSub instruction: " << *Ty << "\n"; in executeFSubInst() 78 GenericValue Src2, Type *Ty) { in executeFMulInst() argument 79 switch (Ty->getTypeID()) { in executeFMulInst() 83 dbgs() << "Unhandled type for FMul instruction: " << *Ty << "\n"; in executeFMulInst() 89 GenericValue Src2, Type *Ty) { in executeFDivInst() argument [all …]
|
/external/swiftshader/third_party/LLVM/bindings/ocaml/target/ |
D | target_ocaml.c | 57 CAMLprim value llvm_size_in_bits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in llvm_size_in_bits() argument 58 return caml_copy_int64(LLVMSizeOfTypeInBits(TD, Ty)); in llvm_size_in_bits() 62 CAMLprim value llvm_store_size(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in llvm_store_size() argument 63 return caml_copy_int64(LLVMStoreSizeOfType(TD, Ty)); in llvm_store_size() 67 CAMLprim value llvm_abi_size(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in llvm_abi_size() argument 68 return caml_copy_int64(LLVMABISizeOfType(TD, Ty)); in llvm_abi_size() 72 CAMLprim value llvm_abi_align(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in llvm_abi_align() argument 73 return Val_int(LLVMABIAlignmentOfType(TD, Ty)); in llvm_abi_align() 77 CAMLprim value llvm_stack_align(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in llvm_stack_align() argument 78 return Val_int(LLVMCallFrameAlignmentOfType(TD, Ty)); in llvm_stack_align() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | DataLayout.h | 169 bool ABIAlign, Type *Ty) const; 175 unsigned getAlignment(Type *Ty, bool abi_or_pref) const; 352 bool isNonIntegralPointerType(Type *Ty) const { in isNonIntegralPointerType() argument 353 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType() 378 unsigned getIndexTypeSizeInBits(Type *Ty) const; 380 unsigned getPointerTypeSize(Type *Ty) const { in getPointerTypeSize() argument 381 return getPointerTypeSizeInBits(Ty) / 8; in getPointerTypeSize() 405 uint64_t getTypeSizeInBits(Type *Ty) const; 411 uint64_t getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() argument 412 return (getTypeSizeInBits(Ty) + 7) / 8; in getTypeStoreSize() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/ |
D | TargetData.cpp | 52 Type *Ty = ST->getElementType(i); in StructLayout() local 53 unsigned TyAlign = ST->isPacked() ? 1 : TD.getABITypeAlignment(Ty); in StructLayout() 63 StructSize += TD.getTypeAllocSize(Ty); // Consume space for this data item in StructLayout() 270 Type *Ty) const { in getAlignmentInfo() 306 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo() 307 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo() 352 const StructLayout *TargetData::getStructLayout(StructType *Ty) const { in getStructLayout() 357 StructLayout *&SL = (*STM)[Ty]; in getStructLayout() 362 int NumElts = Ty->getNumElements(); in getStructLayout() 370 new (L) StructLayout(Ty, *this); in getStructLayout() [all …]
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_vector_ops_main.cpp | 28 typename VectorOps<T>::Ty *getTestVectors(size_t &NumTestVectors) { in getTestVectors() 29 typedef typename VectorOps<T>::Ty Ty; in getTestVectors() typedef 32 Ty Zero; in getTestVectors() 34 Ty Incr; in getTestVectors() 40 Ty Decr; in getTestVectors() 43 Ty Min; in getTestVectors() 46 Ty Max; in getTestVectors() 49 Ty TestVectors[] = {Zero, Incr, Decr, Min, Max}; in getTestVectors() 51 NumTestVectors = sizeof(TestVectors) / sizeof(Ty); in getTestVectors() 62 return static_cast<Ty *>(Dest); in getTestVectors() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/ |
D | MipsISelLowering.h | 380 SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const; 387 SDValue getAddrLocal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, in getAddrLocal() argument 390 SDValue GOT = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrLocal() 391 getTargetNode(N, Ty, DAG, GOTFlag)); in getAddrLocal() 393 DAG.getLoad(Ty, DL, DAG.getEntryNode(), GOT, in getAddrLocal() 396 SDValue Lo = DAG.getNode(MipsISD::Lo, DL, Ty, in getAddrLocal() 397 getTargetNode(N, Ty, DAG, LoFlag)); in getAddrLocal() 398 return DAG.getNode(ISD::ADD, DL, Ty, Load, Lo); in getAddrLocal() 406 SDValue getAddrGlobal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, in getAddrGlobal() argument 409 SDValue Tgt = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrGlobal() [all …]
|
/external/llvm/include/llvm/IR/ |
D | DataLayout.h | 150 bool ABIAlign, Type *Ty) const; 155 unsigned getAlignment(Type *Ty, bool abi_or_pref) const; 337 unsigned getPointerTypeSize(Type *Ty) const { in getPointerTypeSize() argument 338 return getPointerTypeSizeInBits(Ty) / 8; in getPointerTypeSize() 362 uint64_t getTypeSizeInBits(Type *Ty) const; 368 uint64_t getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() argument 369 return (getTypeSizeInBits(Ty) + 7) / 8; in getTypeStoreSize() 376 uint64_t getTypeStoreSizeInBits(Type *Ty) const { in getTypeStoreSizeInBits() argument 377 return 8 * getTypeStoreSize(Ty); in getTypeStoreSizeInBits() 385 uint64_t getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() argument [all …]
|