We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493672e commit 6446f13Copy full SHA for 6446f13
Sources/LLVM/Module.swift
@@ -11,6 +11,19 @@ import cllvm
11
/// together with the LLVM linker, which merges function (and global variable)
12
/// definitions, resolves forward declarations, and merges symbol table entries.
13
///
14
+/// Creating a Module
15
+/// ==================
16
+///
17
+/// A module can be created using `init(name:context:)`.
18
+/// Note that the default target triple is bare metal and there is no default data layout.
19
+/// If you require these to be specified (e.g. to increase the correctness of default alignment values),
20
+/// be sure to set them yourself.
21
22
+/// if let machine = try? TargetMachine() {
23
+/// module.targetTriple = machine.triple
24
+/// module.dataLayout = machine.dataLayout
25
+/// }
26
27
/// Verifying a Module
28
/// ==================
29
0 commit comments