File tree Expand file tree Collapse file tree 5 files changed +10
-97
lines changed Expand file tree Collapse file tree 5 files changed +10
-97
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ matrix:
18
18
sudo : required
19
19
dist : trusty
20
20
env :
21
- - LLVM_API_VERSION=4 .0
21
+ - LLVM_API_VERSION=5 .0
22
22
before_install :
23
23
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:"${PKG_CONFIG_PATH}"
24
24
- wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
Original file line number Diff line number Diff line change @@ -29,11 +29,6 @@ public extension IRType {
29
29
public func constPointerNull( ) -> IRValue {
30
30
return LLVMConstPointerNull ( asLLVM ( ) )
31
31
}
32
-
33
- /// Dumps a representation of this type to stderr.
34
- public func dump( ) {
35
- LLVMDumpType ( asLLVM ( ) )
36
- }
37
32
}
38
33
39
34
internal func convertType( _ type: LLVMTypeRef ) -> IRType {
Original file line number Diff line number Diff line change @@ -166,6 +166,12 @@ public enum FunctionPass {
166
166
/// These functions removes symbols from functions and modules without
167
167
/// touching symbols for debugging information.
168
168
case stripSymbols
169
+ /// Performs a loop vectorization pass to widen instructions in loops to
170
+ /// operate on multiple consecutive iterations.
171
+ case loopVectorize
172
+ /// This pass performs a superword-level parallelism pass to combine
173
+ /// similar independent instructions into vector instructions.
174
+ case slpVectorize
169
175
}
170
176
171
177
/// A `FunctionPassManager` is an object that collects a sequence of passes
@@ -225,7 +231,8 @@ public class FunctionPassManager {
225
231
. pruneEH: LLVMAddPruneEHPass,
226
232
. stripDeadPrototypes: LLVMAddStripDeadPrototypesPass,
227
233
. stripSymbols: LLVMAddStripSymbolsPass,
228
-
234
+ . loopVectorize: LLVMAddLoopVectorizePass,
235
+ . slpVectorize: LLVMAddSLPVectorizePass,
229
236
// .internalize: LLVMAddInternalizePass,
230
237
// .sroaWithThreshhold: LLVMAddScalarReplAggregatesPassWithThreshold,
231
238
]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ func makeFile() throws {
68
68
69
69
let versionStr = run ( llvmConfig, args: [ " --version " ] ) !
70
70
. replacing ( charactersIn: . newlines, with: " " )
71
+ . replacingOccurrences ( of: " svn " , with: " " )
71
72
let components = versionStr. components ( separatedBy: " . " )
72
73
. flatMap { Int ( $0) }
73
74
You can’t perform that action at this time.
0 commit comments