reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
303 Ty = parseTypeAtBeginning("i32", Read, Error, M, &Mapping); 304 ASSERT_TRUE(Ty); 305 ASSERT_TRUE(Ty->isIntegerTy()); 306 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); 310 Ty = parseTypeAtBeginning("i13", Read, Error, M, &Mapping); 311 ASSERT_TRUE(Ty); 312 ASSERT_TRUE(Ty->isIntegerTy()); 313 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 13); 317 Ty = parseTypeAtBeginning("float", Read, Error, M, &Mapping); 318 ASSERT_TRUE(Ty); 319 ASSERT_TRUE(Ty->isFloatTy()); 322 Ty = parseTypeAtBeginning("double", Read, Error, M, &Mapping); 323 ASSERT_TRUE(Ty); 324 ASSERT_TRUE(Ty->isDoubleTy()); 329 Ty = parseTypeAtBeginning("%st", Read, Error, M, &Mapping); 330 ASSERT_TRUE(Ty); 331 ASSERT_TRUE(Ty->isStructTy()); 335 StructType *ST = cast<StructType>(Ty); 338 Ty = ST->getElementType(i); 339 ASSERT_TRUE(Ty->isIntegerTy()); 340 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); 344 Ty = parseTypeAtBeginning("%0", Read, Error, M, &Mapping); 345 ASSERT_TRUE(Ty); 346 ASSERT_TRUE(Ty->isStructTy()); 350 ST = cast<StructType>(Ty); 353 Ty = ST->getElementType(i); 354 ASSERT_TRUE(Ty->isIntegerTy()); 355 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); 359 Ty = parseTypeAtBeginning("<5 x i32>", Read, Error, M, &Mapping); 360 ASSERT_TRUE(Ty); 361 ASSERT_TRUE(Ty->isVectorTy()); 365 VectorType *VT = cast<VectorType>(Ty); 368 Ty = VT->getElementType(); 369 ASSERT_TRUE(Ty->isIntegerTy()); 370 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); 373 Ty = parseTypeAtBeginning("%opaque", Read, Error, M, &Mapping); 374 ASSERT_TRUE(Ty); 375 ASSERT_TRUE(Ty->isStructTy()); 378 ST = cast<StructType>(Ty); 383 Ty = parseTypeAtBeginning("i32*", Read, Error, M, &Mapping); 384 ASSERT_TRUE(Ty); 385 ASSERT_TRUE(Ty->isPointerTy()); 388 PointerType *PT = cast<PointerType>(Ty); 389 Ty = PT->getElementType(); 390 ASSERT_TRUE(Ty->isIntegerTy()); 391 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); 394 Ty = parseTypeAtBeginning("i32**", Read, Error, M, &Mapping); 395 ASSERT_TRUE(Ty); 396 ASSERT_TRUE(Ty->isPointerTy()); 399 PT = cast<PointerType>(Ty); 400 Ty = PT->getElementType(); 401 ASSERT_TRUE(Ty->isPointerTy()); 403 PT = cast<PointerType>(Ty); 404 Ty = PT->getElementType(); 405 ASSERT_TRUE(Ty->isIntegerTy()); 406 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32); 409 Ty = parseTypeAtBeginning("i32 garbage", Read, Error, M, &Mapping); 410 ASSERT_TRUE(Ty); 411 ASSERT_TRUE(Ty->isIntegerTy()); 412 ASSERT_TRUE(Ty->getPrimitiveSizeInBits() == 32);