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 d0da56b commit 4cb0a8dCopy full SHA for 4cb0a8d
Sources/LLVM/StructType.swift
@@ -133,6 +133,15 @@ public struct StructType: IRType {
133
public var isPacked: Bool {
134
return LLVMIsPackedStruct(self.llvm) != 0
135
}
136
+
137
+ /// Returns true if this is a literal struct type.
138
+ ///
139
+ /// A literal struct type is uniqued by structural equivalence - that is,
140
+ /// regardless of how it is named, two literal structures are equal if
141
+ /// their fields are equal.
142
+ public var isLiteral: Bool {
143
+ return LLVMIsLiteralStruct(self.llvm) != 0
144
+ }
145
146
147
extension StructType: Equatable {
0 commit comments