mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 23:36:05 +00:00

This patch defines `fir::SafeTempArrayCopyAttrInterface` and the corresponding OpenACC/OpenMP related attributes in FIR dialect. The actual implementations are just placeholders right now, and array repacking becomes a no-op if `-fopenacc/-fopenmp` is used for the compilation.
45 lines
847 B
CMake
45 lines
847 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Passes
|
|
)
|
|
|
|
add_flang_tool(tco tco.cpp)
|
|
llvm_update_compile_flags(tco)
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
|
|
target_link_libraries(tco PRIVATE
|
|
CUFAttrs
|
|
CUFDialect
|
|
FIRCodeGen
|
|
FIRCodeGenDialect
|
|
FIRDialect
|
|
FIRDialectSupport
|
|
FIRSupport
|
|
FIRTransforms
|
|
FIRBuilder
|
|
HLFIRDialect
|
|
HLFIRTransforms
|
|
flangPasses
|
|
FIROpenACCSupport
|
|
FIROpenMPSupport
|
|
FlangOpenMPTransforms
|
|
FortranSupport
|
|
)
|
|
|
|
mlir_target_link_libraries(tco PRIVATE
|
|
${dialect_libs}
|
|
${extension_libs}
|
|
MLIRIR
|
|
MLIRLLVMDialect
|
|
MLIRBuiltinToLLVMIRTranslation
|
|
MLIRLLVMToLLVMIRTranslation
|
|
MLIRTargetLLVMIRExport
|
|
MLIRPass
|
|
MLIRTransforms
|
|
MLIRAffineToStandard
|
|
MLIRAnalysis
|
|
MLIRSCFToControlFlow
|
|
MLIRParser
|
|
MLIRSupport
|
|
MLIRVectorToLLVM
|
|
)
|