/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/llvm-project/llvm/unittests/AsmParser/ |
D | AsmParserTest.cpp | 177 Type *Ty; in TEST() local 178 Ty = parseType("i32", Error, M, &Mapping); in TEST() 179 ASSERT_TRUE(Ty); in TEST() 180 ASSERT_TRUE(Ty->isIntegerTy()); in TEST() 181 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); in TEST() 184 Ty = parseType("i13", Error, M, &Mapping); in TEST() 185 ASSERT_TRUE(Ty); in TEST() 186 ASSERT_TRUE(Ty->isIntegerTy()); in TEST() 187 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 13); in TEST() 190 Ty = parseType("float", Error, M, &Mapping); in TEST() [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/subzero/src/ |
D | IceTypes.cpp | 143 size_t typeWidthInBytes(Type Ty) { in typeWidthInBytes() argument 144 int8_t Shift = typeWidthInBytesLog2(Ty); in typeWidthInBytes() 148 int8_t typeWidthInBytesLog2(Type Ty) { in typeWidthInBytesLog2() argument 149 if (Ty < IceType_NUM) in typeWidthInBytesLog2() 150 return TypeAttributes[Ty].TypeWidthInBytesLog2; in typeWidthInBytesLog2() 155 size_t typeAlignInBytes(Type Ty) { in typeAlignInBytes() argument 156 if (Ty < IceType_NUM) in typeAlignInBytes() 157 return TypeAttributes[Ty].TypeAlignInBytes; in typeAlignInBytes() 162 size_t typeNumElements(Type Ty) { in typeNumElements() argument 163 if (Ty < IceType_NUM) in typeNumElements() [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 | 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 | 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-project/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/llvm-project/clang/test/AST/ |
D | ast-dump-template-decls-json.cpp | 3 template <typename Ty> 4 void a(Ty); 6 template <typename... Ty> 7 void b(Ty...); 9 template <class Ty, typename Uy> 10 void c(Ty); 15 template <typename Ty, template<typename> typename Uy> 16 void d(Ty, Uy<Ty>); 18 template <class Ty> 19 void e(Ty); [all …]
|
D | ast-dump-template-decls.cpp | 11 template <typename Ty> 14 void a(Ty); 16 template <typename... Ty> 19 void b(Ty...); 21 template <typename Ty, typename Uy> 25 void c(Ty, Uy); 33 template <typename Ty, template<typename> typename Uy> 38 void d(Ty, Uy<Ty>); 40 template <class Ty> 43 void e(Ty); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86LegalizerInfo.cpp | 116 for (auto Ty : {p0, s1, s8, s16, s32}) in setLegalizerInfo32bit() 117 setAction({G_IMPLICIT_DEF, Ty}, Legal); in setLegalizerInfo32bit() 119 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 120 setAction({G_PHI, Ty}, Legal); in setLegalizerInfo32bit() 123 for (auto Ty : {s8, s16, s32}) in setLegalizerInfo32bit() 124 setAction({BinOp, Ty}, Legal); in setLegalizerInfo32bit() 132 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 133 setAction({MemOp, Ty}, Legal); in setLegalizerInfo32bit() 170 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 171 setAction({TargetOpcode::G_CONSTANT, Ty}, Legal); in setLegalizerInfo32bit() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86LegalizerInfo.cpp | 110 for (auto Ty : {p0, s1, s8, s16, s32}) in setLegalizerInfo32bit() 111 setAction({G_IMPLICIT_DEF, Ty}, Legal); in setLegalizerInfo32bit() 113 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 114 setAction({G_PHI, Ty}, Legal); in setLegalizerInfo32bit() 117 for (auto Ty : {s8, s16, s32}) in setLegalizerInfo32bit() 118 setAction({BinOp, Ty}, Legal); in setLegalizerInfo32bit() 126 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 127 setAction({MemOp, Ty}, Legal); in setLegalizerInfo32bit() 169 for (auto Ty : {s8, s16, s32, p0}) in setLegalizerInfo32bit() 170 setAction({TargetOpcode::G_CONSTANT, Ty}, Legal); in setLegalizerInfo32bit() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
D | builder_gfx_mem.cpp | 129 Value* BuilderGfxMem::GEP(Value* Ptr, Value* Idx, Type* Ty, bool isReadOnly, const Twine& Name) in GEP() argument 134 Ptr = INT_TO_PTR(Ptr, Ty); in GEP() 139 Ptr = TranslationHelper(Ptr, Ty, mpfnTranslateGfxAddressForRead); in GEP() 143 Ptr = TranslationHelper(Ptr, Ty, mpfnTranslateGfxAddressForWrite); in GEP() 153 Value* BuilderGfxMem::GEP(Type* Ty, Value* Ptr, Value* Idx, const Twine& Name) in GEP() argument 158 Ptr = INT_TO_PTR(Ptr, Ty); in GEP() 159 Ptr = Builder::GEP(Ty, Ptr, Idx, Name); in GEP() 161 Ptr = TranslationHelper(Ptr, Ty, mpfnTranslateGfxAddressForRead); in GEP() 165 Ptr = Builder::GEP(Ty, Ptr, Idx, Name); in GEP() 170 Value* BuilderGfxMem::GEP(Value* Ptr, const std::initializer_list<Value*>& indexList, Type* Ty) in GEP() argument [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 21 LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { in getLLTForType() argument 22 if (auto VTy = dyn_cast<VectorType>(&Ty)) { in getLLTForType() 30 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() 35 if (Ty.isSized()) { in getLLTForType() 38 auto SizeInBits = DL.getTypeSizeInBits(&Ty); in getLLTForType() 46 MVT llvm::getMVTForLLT(LLT Ty) { in getMVTForLLT() argument 47 if (!Ty.isVector()) in getMVTForLLT() 48 return MVT::getIntegerVT(Ty.getSizeInBits()); in getMVTForLLT() 51 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT() 52 Ty.getNumElements()); in getMVTForLLT() [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/llvm-project/clang/lib/CodeGen/ |
D | TargetInfo.cpp | 54 static ABIArgInfo coerceToIntArray(QualType Ty, in coerceToIntArray() argument 58 const uint64_t Size = Context.getTypeSize(Ty); in coerceToIntArray() 59 const uint64_t Alignment = Context.getTypeAlign(Ty); in coerceToIntArray() 83 ABIArgInfo ABIInfo::getNaturalAlignIndirect(QualType Ty, bool ByVal, in getNaturalAlignIndirect() argument 86 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), ByVal, in getNaturalAlignIndirect() 91 ABIInfo::getNaturalAlignIndirectInReg(QualType Ty, bool Realign) const { in getNaturalAlignIndirectInReg() argument 92 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg() 97 QualType Ty) const { in EmitMSVAArg() 101 bool ABIInfo::isPromotableIntegerTypeForABI(QualType Ty) const { in isPromotableIntegerTypeForABI() 102 if (Ty->isPromotableIntegerType()) in isPromotableIntegerTypeForABI() [all …]
|
/external/rust/crates/libm/ |
D | build.rs | 33 args: Vec<Ty>, 34 ret: Vec<Ty>, 38 enum Ty { enum 110 fn parse_ty(s: &str) -> Ty { in parse() argument 112 "f32" => Ty::F32, in parse() 113 "f64" => Ty::F64, in parse() 114 "i32" => Ty::I32, in parse() 115 "bool" => Ty::Bool, in parse() 120 fn parse_retty(s: &str) -> Vec<Ty> { in parse() argument 122 "(f32, f32)" => vec![Ty::F32, Ty::F32], in parse() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Constants.cpp | 285 Type *Ty = getType(); in isElementWiseEqual() local 286 if (!isa<Constant>(Y) || !Ty->isVectorTy() || Ty != Y->getType()) in isElementWiseEqual() 318 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument 319 switch (Ty->getTypeID()) { in getNullValue() 321 return ConstantInt::get(Ty, 0); in getNullValue() 323 return ConstantFP::get(Ty->getContext(), in getNullValue() 326 return ConstantFP::get(Ty->getContext(), in getNullValue() 329 return ConstantFP::get(Ty->getContext(), in getNullValue() 332 return ConstantFP::get(Ty->getContext(), in getNullValue() 335 return ConstantFP::get(Ty->getContext(), in getNullValue() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 20 LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { in getLLTForType() argument 21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { in getLLTForType() 29 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() 34 if (Ty.isSized()) { in getLLTForType() 37 auto SizeInBits = DL.getTypeSizeInBits(&Ty); in getLLTForType() 45 MVT llvm::getMVTForLLT(LLT Ty) { in getMVTForLLT() argument 46 if (!Ty.isVector()) in getMVTForLLT() 47 return MVT::getIntegerVT(Ty.getSizeInBits()); in getMVTForLLT() 50 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT() 51 Ty.getNumElements()); in getMVTForLLT() [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/llvm-project/llvm/lib/IR/ |
D | Constants.cpp | 336 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument 337 switch (Ty->getTypeID()) { in getNullValue() 339 return ConstantInt::get(Ty, 0); in getNullValue() 341 return ConstantFP::get(Ty->getContext(), in getNullValue() 344 return ConstantFP::get(Ty->getContext(), in getNullValue() 347 return ConstantFP::get(Ty->getContext(), in getNullValue() 350 return ConstantFP::get(Ty->getContext(), in getNullValue() 353 return ConstantFP::get(Ty->getContext(), in getNullValue() 356 return ConstantFP::get(Ty->getContext(), in getNullValue() 359 return ConstantFP::get(Ty->getContext(), in getNullValue() [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/llvm-project/polly/lib/CodeGen/ |
D | RuntimeDebugBuilder.cpp | 27 FunctionType *Ty = FunctionType::get( in getVPrintF() local 30 F = Function::Create(Ty, Linkage, Name, M); in getVPrintF() 48 FunctionType *Ty = FunctionType::get( in getAddressSpaceCast() local 51 F = Function::Create(Ty, Linkage, Name, M); in getAddressSpaceCast() 104 bool RuntimeDebugBuilder::isPrintable(Type *Ty) { in isPrintable() argument 105 if (Ty->isFloatingPointTy()) in isPrintable() 108 if (Ty->isIntegerTy()) in isPrintable() 109 return Ty->getIntegerBitWidth() <= 64; in isPrintable() 111 if (isa<PointerType>(Ty)) in isPrintable() 123 Type *Ty = Val->getType(); in prepareValuesForPrinting() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 49 static void executeFNegInst(GenericValue &Dest, GenericValue Src, Type *Ty) { in executeFNegInst() argument 50 switch (Ty->getTypeID()) { in executeFNegInst() 64 Type *Ty = I.getOperand(0)->getType(); in visitUnaryOperator() local 69 if (Ty->isVectorTy()) { in visitUnaryOperator() 77 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) { in visitUnaryOperator() 80 } else if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) { in visitUnaryOperator() 93 case Instruction::FNeg: executeFNegInst(R, Src, Ty); break; in visitUnaryOperator() 109 GenericValue Src2, Type *Ty) { in executeFAddInst() argument 110 switch (Ty->getTypeID()) { in executeFAddInst() 114 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst() [all …]
|
/external/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 49 static void executeFNegInst(GenericValue &Dest, GenericValue Src, Type *Ty) { in executeFNegInst() argument 50 switch (Ty->getTypeID()) { in executeFNegInst() 64 Type *Ty = I.getOperand(0)->getType(); in visitUnaryOperator() local 69 if (Ty->isVectorTy()) { in visitUnaryOperator() 77 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) { in visitUnaryOperator() 80 } else if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) { in visitUnaryOperator() 93 case Instruction::FNeg: executeFNegInst(R, Src, Ty); break; in visitUnaryOperator() 109 GenericValue Src2, Type *Ty) { in executeFAddInst() argument 110 switch (Ty->getTypeID()) { in executeFAddInst() 114 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst() [all …]
|