Home
last modified time | relevance | path

Searched refs:LLVMStructType (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMTypeSyntax.cpp312 static LLVMStructType trySetStructBody(LLVMStructType type, in trySetStructBody()
319 return LLVMStructType(); in trySetStructBody()
328 return LLVMStructType(); in trySetStructBody()
355 return LLVMStructType(); in parseStructType()
370 return LLVMStructType(); in parseStructType()
378 LLVMStructType(); in parseStructType()
380 return LLVMStructType(); in parseStructType()
385 return LLVMStructType(); in parseStructType()
393 return LLVMStructType(); in parseStructType()
398 return LLVMStructType(); in parseStructType()
[all …]
H A DLLVMTypes.cpp401 LLVMStructType LLVMStructType::getIdentified(MLIRContext *context, in getIdentified()
406 LLVMStructType LLVMStructType::getIdentifiedChecked( in getIdentifiedChecked()
412 LLVMStructType LLVMStructType::getNewIdentified(MLIRContext *context, in getNewIdentified()
429 LLVMStructType LLVMStructType::getLiteral(MLIRContext *context, in getLiteral()
434 LLVMStructType
441 LLVMStructType LLVMStructType::getOpaque(StringRef name, MLIRContext *context) { in getOpaque()
445 LLVMStructType
460 bool LLVMStructType::isOpaque() { in isOpaque()
466 ArrayRef<Type> LLVMStructType::getBody() const { in getBody()
628 void LLVMStructType::walkImmediateSubElements( in walkImmediateSubElements()
[all …]
H A DNVVMDialect.cpp95 if (auto structType = operandElType.dyn_cast<LLVM::LLVMStructType>()) { in inferOperandMMAType()
343 auto f16x2x4StructTy = LLVM::LLVMStructType::getLiteral( in verify()
349 LLVM::LLVMStructType::getLiteral(context, SmallVector<Type>(8, f32Ty)); in verify()
351 LLVM::LLVMStructType::getLiteral(context, {f16x2Ty, f16x2Ty}); in verify()
355 LLVM::LLVMStructType::getLiteral(context, {i32Ty, i32Ty}); in verify()
379 expectedResult.push_back(LLVM::LLVMStructType::getLiteral( in verify()
439 expectedResult.emplace_back(LLVM::LLVMStructType::getLiteral( in verify()
529 auto type = getType().dyn_cast<LLVM::LLVMStructType>(); in verify()
575 Type dstType = LLVM::LLVMStructType::getLiteral( in verify()
627 Type dstType = LLVM::LLVMStructType::getLiteral( in verify()
[all …]
H A DLLVMDialect.cpp492 .Case<LLVMStructType>([&](LLVMStructType structType) -> llvm::Error { in recordStructIndices()
1442 } else if (auto structType = llvmType.dyn_cast<LLVMStructType>()) { in getInsertExtractValueElementType()
1486 } else if (auto structType = llvmType.dyn_cast<LLVMStructType>()) { in getInsertExtractValueElementType()
2401 if (auto structType = getType().dyn_cast<LLVMStructType>()) { in verify()
2593 LLVMStructType::getLiteral(builder.getContext(), {type, boolType}); in parse()
2726 LLVMStructType>(); in initialize()
2838 auto structType = annotatedType.dyn_cast<LLVMStructType>(); in verifyStructAttr()
2848 structType = ptrType.getElementType().dyn_cast<LLVMStructType>(); in verifyStructAttr()
/llvm-project-15.0.7/mlir/unittests/Dialect/LLVMIR/
H A DLLVMTypeTest.cpp17 auto structTy = LLVMStructType::getIdentified(&context, "foo"); in TEST_F()
23 auto fooStructTy = LLVMStructType::getIdentified(&context, "foo"); in TEST_F()
25 auto barStructTy = LLVMStructType::getIdentified(&context, "bar"); in TEST_F()
49 auto structType = subElementTypes[1].dyn_cast<LLVMStructType>(); in TEST_F()
57 structType = subElementTypes[3].dyn_cast<LLVMStructType>(); in TEST_F()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/
H A DLLVMTypes.h283 class LLVMStructType
284 : public Type::TypeBase<LLVMStructType, Type, detail::LLVMStructTypeStorage,
300 static LLVMStructType getIdentified(MLIRContext *context, StringRef name);
301 static LLVMStructType
309 static LLVMStructType getNewIdentified(MLIRContext *context, StringRef name,
315 static LLVMStructType getLiteral(MLIRContext *context, ArrayRef<Type> types,
317 static LLVMStructType
328 static LLVMStructType getOpaque(StringRef name, MLIRContext *context);
329 static LLVMStructType
H A DLLVMOpBase.td137 def LLVM_AnyStruct : Type<CPred<"$_self.isa<::mlir::LLVM::LLVMStructType>()">,
143 CPred<"$_self.cast<::mlir::LLVM::LLVMStructType>().isOpaque()">]>>;
154 CPred<"$_self.isa<::mlir::LLVM::LLVMStructType, "
280 opInst.getResult(0).getType().cast<LLVM::LLVMStructType>()
294 // to be accessed via the LLVMStructType, instead of directly via the result.
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DTypeFromLLVM.cpp113 return LLVM::LLVMStructType::getLiteral(&context, subtypes, in translate()
118 return LLVM::LLVMStructType::getOpaque(type->getName(), &context); in translate()
120 LLVM::LLVMStructType translated = in translate()
121 LLVM::LLVMStructType::getIdentified(&context, type->getName()); in translate()
H A DTypeToLLVM.cpp74 LLVM::LLVMPointerType, LLVM::LLVMStructType, in translateType()
118 llvm::Type *translate(LLVM::LLVMStructType type) { in translate()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DTypeConverter.cpp58 addConversion([&](LLVM::LLVMStructType type, SmallVectorImpl<Type> &results, in LLVMTypeConverter()
67 auto convertedType = LLVM::LLVMStructType::getIdentified( in LLVMTypeConverter()
73 convertedType = LLVM::LLVMStructType::getIdentified( in LLVMTypeConverter()
98 results.push_back(LLVM::LLVMStructType::getLiteral( in LLVMTypeConverter()
192 return LLVM::LLVMStructType::getLiteral(&getContext(), in convertComplexType()
250 if (auto structType = resultType.dyn_cast<LLVM::LLVMStructType>()) { in convertFunctionTypeCWrapper()
340 return LLVM::LLVMStructType::getLiteral(&getContext(), types); in convertMemRefType()
367 return LLVM::LLVMStructType::getLiteral(&getContext(), in convertUnrankedMemRefType()
472 return LLVM::LLVMStructType::getLiteral(&getContext(), resultTypes); in packFunctionResults()
H A DStructBuilder.cpp27 Type type = structType.cast<LLVM::LLVMStructType>().getBody()[pos]; in extractPtr()
H A DMemRefBuilder.cpp27 .cast<LLVM::LLVMStructType>() in MemRefDescriptor()
193 .cast<LLVM::LLVMStructType>() in getElementPtrType()
465 LLVM::LLVMPointerType::get(LLVM::LLVMStructType::getLiteral( in sizeBasePtr()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/
H A DWmmaOpsToNvvm.cpp160 auto matrixType = adaptor.src().getType().cast<LLVM::LLVMStructType>(); in matchAndRewrite()
204 auto structType = operand.getType().cast<LLVM::LLVMStructType>(); in matchAndRewrite()
256 LLVM::LLVMStructType type = convertMMAToLLVMType( in matchAndRewrite()
334 LLVM::LLVMStructType destType = convertMMAToLLVMType( in matchAndRewrite()
342 .cast<LLVM::LLVMStructType>() in matchAndRewrite()
362 LLVM::LLVMStructType mlir::convertMMAToLLVMType(gpu::MMAMatrixType type) { in convertMMAToLLVMType()
367 return LLVM::LLVMStructType::getLiteral( in convertMMAToLLVMType()
H A DLowerGpuOpsToNVVMOps.cpp89 auto resultTy = LLVM::LLVMStructType::getLiteral(rewriter.getContext(), in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/NVGPUToNVVM/
H A DNVGPUToNVVM.cpp32 return LLVM::LLVMStructType::getLiteral( in inferIntrinsicResultType()
36 return LLVM::LLVMStructType::getLiteral( in inferIntrinsicResultType()
41 return LLVM::LLVMStructType::getLiteral(ctx, {f64Ty, f64Ty}); in inferIntrinsicResultType()
44 return LLVM::LLVMStructType::getLiteral( in inferIntrinsicResultType()
49 return LLVM::LLVMStructType::getLiteral( in inferIntrinsicResultType()
64 auto structType = intrinsicResultType.dyn_cast<LLVM::LLVMStructType>(); in convertIntrinsicResult()
218 ldMatrixResultType = LLVM::LLVMStructType::getLiteral( in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DTypeConverter.h124 return mlir::LLVM::LLVMStructType::getLiteral(&getContext(), members, in LLVMTypeConverter()
128 return mlir::LLVM::LLVMStructType::getLiteral( in LLVMTypeConverter()
169 auto st = mlir::LLVM::LLVMStructType::getIdentified(&getContext(), name); in convertRecordType()
264 mlir::LLVM::LLVMStructType::getLiteral(&getContext(), dataDescFields,
282 return mlir::LLVM::LLVMStructType::getLiteral(&getContext(), tuple, in convertBoxProcType()
H A DCodeGen.cpp223 if (auto t = type.dyn_cast<mlir::LLVM::LLVMStructType>()) { in getBoxEleTy()
424 auto xty = ty.cast<mlir::LLVM::LLVMStructType>().getBody()[x]; in genExtractValueWithIndex()
975 llvmStructTy.cast<mlir::LLVM::LLVMStructType>().getBody()[1]; in matchAndRewrite()
1427 if (auto structTy = resultTy.dyn_cast<mlir::LLVM::LLVMStructType>()) { in genBoxOffsetGep()
1978 } else if (auto st = ty.dyn_cast<mlir::LLVM::LLVMStructType>()) { in toRowMajor()
3126 auto structTy = ptr.getType().cast<mlir::LLVM::LLVMStructType>(); in matchAndRewrite()
3156 auto structTy = ty.cast<mlir::LLVM::LLVMStructType>(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/OpenACCToLLVM/
H A DOpenACCToLLVM.cpp32 Type descriptorType = LLVM::LLVMStructType::getNewIdentified( in undef()
41 if (auto type = descriptor.getType().dyn_cast<LLVM::LLVMStructType>()) { in isValid()
47 .isa<LLVM::LLVMStructType>()) && in isValid()
/llvm-project-15.0.7/mlir/include/mlir/Conversion/GPUToNVVM/
H A DGPUToNVVMPass.h28 LLVM::LLVMStructType convertMMAToLLVMType(gpu::MMAMatrixType type);
/llvm-project-15.0.7/mlir/lib/CAPI/Dialect/
H A DLLVM.cpp43 return wrap(LLVMStructType::getLiteral( in mlirLLVMStructTypeLiteralGet()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/
H A DConvertLaunchFuncToVulkanCalls.cpp86 return LLVM::LLVMStructType::getLiteral( in getMemRefType()
265 llvmPtrDescriptorTy.getElementType().dyn_cast<LLVM::LLVMStructType>(); in deduceMemRefRankAndType()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp196 return LLVM::LLVMStructType::getLiteral(type.getContext(), elementsVector, in convertStructTypeWithOffset()
207 return LLVM::LLVMStructType::getLiteral(type.getContext(), elementsVector, in convertStructTypePacked()
673 auto structType = LLVM::LLVMStructType::getLiteral(context, fields); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/
H A DConvertVectorToLLVM.cpp933 adaptor.getOperands()[0].getType().dyn_cast<LLVM::LLVMStructType>(); in matchAndRewrite()
939 .dyn_cast_or_null<LLVM::LLVMStructType>(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp537 auto pairType = LLVM::LLVMStructType::getLiteral(rewriter.getContext(), in matchAndRewrite()
1061 .dyn_cast_or_null<LLVM::LLVMStructType>(); in convertSourceMemRefToDescriptor()
1131 .dyn_cast_or_null<LLVM::LLVMStructType>(); in convertSourceMemRefToDescriptor()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DGPUToLLVMConversion.cpp646 auto structType = LLVM::LLVMStructType::getNewIdentified(context, StringRef(), in generateParamsArray()

12