File: CMakeLists.txt

package info (click to toggle)
intel-graphics-compiler 1.0.17791.18-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 102,312 kB
  • sloc: cpp: 935,343; lisp: 286,143; ansic: 16,196; python: 3,279; yacc: 2,487; lex: 1,642; pascal: 300; sh: 174; makefile: 27
file content (158 lines) | stat: -rw-r--r-- 3,422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#=========================== begin_copyright_notice ============================
#
# Copyright (C) 2017-2023 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
#============================ end_copyright_notice =============================

add_subdirectory(TargetInfo)
add_subdirectory(Utils)

set(LLVM_TARGET_DEFINITIONS GenX.td)
tablegen(LLVM GenXGenSubtargetInfo.inc -gen-subtarget)
add_public_tablegen_target(GenXCommonTableGen)

set(GenXCommonTableGen_dependencies)
list(APPEND GenXCommonTableGen_dependencies
  GenXCommonTableGen)

add_custom_target(GenXCommonTableGen_target DEPENDS ${GenXCommonTableGen_dependencies})

set(CODEGEN_SOURCES
  ConstantEncoder.cpp
  FunctionGroup.cpp
  GenXAddressCommoning.cpp
  GenXAggregatePseudoLowering.cpp
  GenXAlignmentInfo.cpp
  GenXAnalysisDumper.cpp
  GenXArgIndirection.cpp
  GenXBaling.cpp
  GenXBiFPrepare.cpp
  GenXBFloatLowering.cpp
  GenXBuiltinFunctions.cpp
  GenXCFSimplification.cpp
  GenXCategory.cpp
  GenXCisaBuilder.cpp
  GenXCoalescing.cpp
  GenXConstants.cpp
  GenXDeadVectorRemoval.cpp
  GenXDebugInfo.cpp
  GenXDebugLegalization.cpp
  GenXDepressurizer.cpp
  GenXEmulate.cpp
  GenXExtractVectorizer.cpp
  GenXFixInvalidFuncName.cpp
  GenXLegalizeGVLoadUses.cpp
  GenXGASCastAnalyzer.cpp
  GenXGASDynamicResolution.cpp
  GenXGEPLowering.cpp
  GenXGlobalValueLowering.cpp
  GenXGotoJoin.cpp
  GenXGVClobberChecker.cpp
  GenXVerify.cpp
  GenXVerify_Regioning.cpp
  GenXIMadPostLegalization.cpp
  GenXInitBiFConstants.cpp
  GenXInlineAsmLowering.cpp
  GenXIntrinsics.cpp
  GenXLCECalculation.cpp
  GenXLegacyToLscTranslator.cpp
  GenXLegalization.cpp
  GenXLiveElements.cpp
  GenXLiveRanges.cpp
  GenXLiveness.cpp
  GenXLoadStoreLegalization.cpp
  GenXLoadStoreLowering.cpp
  GenXLowerAggrCopies.cpp
  GenXLowerJmpTableSwitch.cpp
  GenXLowering.cpp
  GenXLscAddrCalcFolding.cpp
  GenXModule.cpp
  GenXNumbering.cpp
  GenXOCLInfoExtractor.cpp
  GenXOCLRuntimeInfo.cpp
  GenXPatternMatch.cpp
  GenXPostLegalization.cpp
  GenXPredRegionLowering.cpp
  GenXPressureTracker.cpp
  GenXPrinter.cpp
  GenXPrologEpilogInsertion.cpp
  GenXPromoteArray.cpp
  GenXPromotePredicate.cpp
  GenXPromoteStatefulToBindless.cpp
  GenXRawSendRipper.cpp
  GenXReduceIntSize.cpp
  GenXRegionCollapsing.cpp
  GenXRegionUtils.cpp
  GenXRematerialization.cpp
  GenXSimdCFConformance.cpp
  GenXSimdCFRegion.cpp
  GenXSLMResolution.cpp
  GenXStackUsage.cpp
  GenXStructSplitter.cpp
  GenXSubtarget.cpp
  GenXTargetMachine.cpp
  GenXTidyControlFlow.cpp
  GenXUnbaling.cpp
  GenXUtil.cpp
  GenXVectorCombiner.cpp
  GenXVectorDecomposer.cpp
  GenXVisa.cpp
  GenXVisaRegAlloc.cpp
  OCLRuntimeInfoPrinter.cpp
  GenXGlobalUniform.cpp
  GenXDetectPointerArg.cpp
)

add_library(VCCodeGen STATIC ${CODEGEN_SOURCES})
add_dependencies(VCCodeGen
  GenXUtilBuild
  GenXCommonTableGen_target
  )
target_include_directories(VCCodeGen
  PRIVATE
  ${CMAKE_CURRENT_BINARY_DIR}
  )

igc_get_llvm_targets(LLVM_LIBS
  AggressiveInstCombine
  Analysis
  BitstreamReader
  BitReader
  BitWriter
  BinaryFormat
  CodeGen
  Core
  Demangle
  InstCombine
  Instrumentation
  ipo
  IRReader
  Linker
  Object
  ProfileData
  ScalarOpts
  Support
  Target
  TransformUtils
  Vectorize
  )

target_link_libraries(VCCodeGen
  ${LLVM_LIBS}

  LLVMGenXIntrinsics

  VCInternalIntrinsics

  VCHeaders
  VCTransforms
  VCTargetInfo
  VCSupport
  VCGeneralUtils
  VCGenXUtils
  BiFManager
  GenXDebugInfo
  GenX_IR
  )