mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
The earlier available datalyaout allows MLIR to LLVM-IR transformation to use the datalayout for decisions, such as comparing sizes for different types of integers. This should solve https://github.com/llvm/llvm-project/issues/57230 Reviewed By: awarzynski, vzakhari Differential Revision: https://reviews.llvm.org/D133568
15 lines
343 B
Fortran
15 lines
343 B
Fortran
! Test the `-emit-llvm` option
|
|
|
|
! UNSUPPORTED: system-windows
|
|
! Windows is currently not supported in flang/lib/Optimizer/CodeGen/Target.cpp
|
|
|
|
! RUN: %flang_fc1 -emit-llvm %s -o - | FileCheck %s
|
|
|
|
! CHECK: ; ModuleID = 'FIRModule'
|
|
! CHECK: target datalayout =
|
|
! CHECK: define void @_QQmain()
|
|
! CHECK-NEXT: ret void
|
|
! CHECK-NEXT: }
|
|
|
|
end program
|