[Mlir-commits] [mlir] 0af6d27 - Add /bigobj for SPIRV dialect on MSVC.

Stella Laurenzo llvmlistbot at llvm.org
Mon Mar 30 12:01:21 PDT 2020


Author: Stella Laurenzo
Date: 2020-03-30T12:00:00-07:00
New Revision: 0af6d27e2ee2aa7365449e0f3c0f4727357a9584

URL: https://github.com/llvm/llvm-project/commit/0af6d27e2ee2aa7365449e0f3c0f4727357a9584
DIFF: https://github.com/llvm/llvm-project/commit/0af6d27e2ee2aa7365449e0f3c0f4727357a9584.diff

LOG: Add /bigobj for SPIRV dialect on MSVC.

Summary: This object file has grown beyond the default limit, and elsewhere in LLVM, we seem to be setting this flag as a one-off, so continuing that here.

Reviewers: mravishankar, antiagainst

Subscribers: mgorny, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, bader, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77002

Added: 
    

Modified: 
    mlir/lib/Dialect/SPIRV/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SPIRV/CMakeLists.txt b/mlir/lib/Dialect/SPIRV/CMakeLists.txt
index afb7497b9e7c..e6834ca2ef3e 100644
--- a/mlir/lib/Dialect/SPIRV/CMakeLists.txt
+++ b/mlir/lib/Dialect/SPIRV/CMakeLists.txt
@@ -1,3 +1,7 @@
+if (MSVC)
+  set_source_files_properties(SPIRVDialect.cpp PROPERTIES COMPILE_FLAGS /bigobj)
+endif()
+
 set(LLVM_TARGET_DEFINITIONS SPIRVCanonicalization.td)
 mlir_tablegen(SPIRVCanonicalization.inc -gen-rewriters)
 add_public_tablegen_target(MLIRSPIRVCanonicalizationIncGen)


        


More information about the Mlir-commits mailing list