Lines Matching refs:layout

78   unsigned getTypeSizeInBits(const DataLayout &layout,  in getTypeSizeInBits()
88 unsigned getABIAlignment(const DataLayout &layout, in getABIAlignment()
98 unsigned getPreferredAlignment(const DataLayout &layout, in getPreferredAlignment()
254 DataLayout layout(module.get()); in TEST() local
255 EXPECT_EQ(layout.getTypeSize(IntegerType::get(&ctx, 42)), 6u); in TEST()
256 EXPECT_EQ(layout.getTypeSize(Float16Type::get(&ctx)), 2u); in TEST()
257 EXPECT_EQ(layout.getTypeSizeInBits(IntegerType::get(&ctx, 42)), 42u); in TEST()
258 EXPECT_EQ(layout.getTypeSizeInBits(Float16Type::get(&ctx)), 16u); in TEST()
259 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 42)), 8u); in TEST()
260 EXPECT_EQ(layout.getTypeABIAlignment(Float16Type::get(&ctx)), 2u); in TEST()
261 EXPECT_EQ(layout.getTypePreferredAlignment(IntegerType::get(&ctx, 42)), 8u); in TEST()
262 EXPECT_EQ(layout.getTypePreferredAlignment(Float16Type::get(&ctx)), 2u); in TEST()
277 DataLayout layout(op); in TEST() local
278 EXPECT_EQ(layout.getTypeSize(IntegerType::get(&ctx, 42)), 42u); in TEST()
279 EXPECT_EQ(layout.getTypeSize(Float16Type::get(&ctx)), 16u); in TEST()
280 EXPECT_EQ(layout.getTypeSizeInBits(IntegerType::get(&ctx, 42)), 8u * 42u); in TEST()
281 EXPECT_EQ(layout.getTypeSizeInBits(Float16Type::get(&ctx)), 8u * 16u); in TEST()
282 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 42)), 64u); in TEST()
283 EXPECT_EQ(layout.getTypeABIAlignment(Float16Type::get(&ctx)), 16u); in TEST()
284 EXPECT_EQ(layout.getTypePreferredAlignment(IntegerType::get(&ctx, 42)), 128u); in TEST()
285 EXPECT_EQ(layout.getTypePreferredAlignment(Float16Type::get(&ctx)), 32u); in TEST()
300 DataLayout layout(op); in TEST() local
301 EXPECT_EQ(layout.getTypeSize(IntegerType::get(&ctx, 42)), 42u); in TEST()
302 EXPECT_EQ(layout.getTypeSize(Float16Type::get(&ctx)), 16u); in TEST()
303 EXPECT_EQ(layout.getTypeSizeInBits(IntegerType::get(&ctx, 42)), 8u * 42u); in TEST()
304 EXPECT_EQ(layout.getTypeSizeInBits(Float16Type::get(&ctx)), 8u * 16u); in TEST()
305 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 42)), 64u); in TEST()
306 EXPECT_EQ(layout.getTypeABIAlignment(Float16Type::get(&ctx)), 16u); in TEST()
307 EXPECT_EQ(layout.getTypePreferredAlignment(IntegerType::get(&ctx, 42)), 128u); in TEST()
308 EXPECT_EQ(layout.getTypePreferredAlignment(Float16Type::get(&ctx)), 32u); in TEST()
326 DataLayout layout(op); in TEST() local
327 EXPECT_EQ(layout.getTypeSize(IntegerType::get(&ctx, 42)), 5u); in TEST()
328 EXPECT_EQ(layout.getTypeSize(Float16Type::get(&ctx)), 6u); in TEST()
329 EXPECT_EQ(layout.getTypeSizeInBits(IntegerType::get(&ctx, 42)), 40u); in TEST()
330 EXPECT_EQ(layout.getTypeSizeInBits(Float16Type::get(&ctx)), 48u); in TEST()
331 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 42)), 8u); in TEST()
332 EXPECT_EQ(layout.getTypeABIAlignment(Float16Type::get(&ctx)), 8u); in TEST()
333 EXPECT_EQ(layout.getTypePreferredAlignment(IntegerType::get(&ctx, 42)), 16u); in TEST()
334 EXPECT_EQ(layout.getTypePreferredAlignment(Float16Type::get(&ctx)), 16u); in TEST()
336 EXPECT_EQ(layout.getTypeSize(IntegerType::get(&ctx, 32)), 32u); in TEST()
337 EXPECT_EQ(layout.getTypeSize(Float32Type::get(&ctx)), 32u); in TEST()
338 EXPECT_EQ(layout.getTypeSizeInBits(IntegerType::get(&ctx, 32)), 256u); in TEST()
339 EXPECT_EQ(layout.getTypeSizeInBits(Float32Type::get(&ctx)), 256u); in TEST()
340 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 32)), 32u); in TEST()
341 EXPECT_EQ(layout.getTypeABIAlignment(Float32Type::get(&ctx)), 32u); in TEST()
342 EXPECT_EQ(layout.getTypePreferredAlignment(IntegerType::get(&ctx, 32)), 64u); in TEST()
343 EXPECT_EQ(layout.getTypePreferredAlignment(Float32Type::get(&ctx)), 64u); in TEST()
358 DataLayout layout(op); in TEST() local
361 sum += layout.getTypeSize(SingleQueryType::get(&ctx)); in TEST()
364 sum += layout.getTypeSize(SingleQueryType::get(&ctx)); in TEST()
389 DataLayout layout(op); in TEST() local
392 EXPECT_EQ(layout.getTypeSize(Float16Type::get(&ctx)), 6u); in TEST()
399 ASSERT_DEATH(layout.getTypeSize(Float16Type::get(&ctx)), "no longer valid"); in TEST()
415 DataLayout layout(op); in TEST() local
417 ASSERT_DEATH(layout.getTypeSize(TypeNoLayout::get(&ctx)), in TEST()
434 DataLayout layout(op); in TEST() local
436 EXPECT_EQ(layout.getTypeSizeInBits(IntegerType::get(&ctx, 42)), 42u); in TEST()
437 EXPECT_EQ(layout.getTypeSizeInBits(IntegerType::get(&ctx, 32)), 32u); in TEST()
438 EXPECT_EQ(layout.getTypeSize(IntegerType::get(&ctx, 42)), 6u); in TEST()
439 EXPECT_EQ(layout.getTypeSize(IntegerType::get(&ctx, 32)), 5u); in TEST()