Home
last modified time | relevance | path

Searched refs:getTypeABIAlignment (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DDataLayoutInterfacesTest.cpp161 return 2 * getTypeABIAlignment(type, dataLayout, params); in getTypePreferredAlignment()
259 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 42)), 8u); in TEST()
260 EXPECT_EQ(layout.getTypeABIAlignment(Float16Type::get(&ctx)), 2u); 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()
305 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 42)), 64u); in TEST()
306 EXPECT_EQ(layout.getTypeABIAlignment(Float16Type::get(&ctx)), 16u); 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()
340 EXPECT_EQ(layout.getTypeABIAlignment(IntegerType::get(&ctx, 32)), 32u); in TEST()
[all …]
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DDataLayoutInterfaces.cpp145 return dataLayout.getTypeABIAlignment( in getDefaultABIAlignment()
182 return dataLayout.getTypeABIAlignment(fltType); in getFloatTypePreferredAlignment()
191 return dataLayout.getTypeABIAlignment(type); in getDefaultPreferredAlignment()
435 unsigned mlir::DataLayout::getTypeABIAlignment(Type t) const { in getTypeABIAlignment() function in mlir::DataLayout
442 return iface.getTypeABIAlignment(ty, *this, list); in getTypeABIAlignment()
/llvm-project-15.0.7/mlir/test/lib/Dialect/DLTI/
H A DTestDataLayoutQuery.cpp41 unsigned alignment = layout.getTypeABIAlignment(op.getType()); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMTypes.cpp74 dataLayout.getTypeABIAlignment(getElementType())) * in getTypeSize()
80 return dataLayout.getTypeABIAlignment(getElementType()); in getABIAlignment()
301 return dataLayout.getTypeABIAlignment(get(getContext())); in getABIAlignment()
302 return dataLayout.getTypeABIAlignment(get(getElementType())); in getABIAlignment()
493 isPacked() ? 1 : dataLayout.getTypeABIAlignment(element); in getTypeSizeInBits()
546 std::max(dataLayout.getTypeABIAlignment(iter), structAlignment); in calculateStructAlignment()
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DDataLayoutInterfaces.h157 unsigned getTypeABIAlignment(Type t) const;
H A DDataLayoutInterfaces.td235 /*methodName=*/"getTypeABIAlignment",
/llvm-project-15.0.7/mlir/docs/
H A DDataLayout.md76 unsigned getTypeABIAlignment(Type type) const;
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DModuleTranslation.cpp113 unsigned abi = dataLayout.getTypeABIAlignment(type) * 8u; in translateDataLayout()