Skip to content

Instantly share code, notes, and snippets.

@lexuanquynh
Created June 16, 2025 09:03
Show Gist options
  • Save lexuanquynh/7940c6627bafac6ea503444dc7016cc2 to your computer and use it in GitHub Desktop.
Save lexuanquynh/7940c6627bafac6ea503444dc7016cc2 to your computer and use it in GitHub Desktop.
...
entry:
%1 = getelementptr inbounds %__opaque_existential_type_1, %__opaque_existential_type_1* %0, i32 0, i32 1
%2 = load %swift.type*, %swift.type** %1, align 8
%3 = getelementptr inbounds %__opaque_existential_type_1, %__opaque_existential_type_1* %0, i32 0, i32 0
%4 = bitcast %swift.type* %2 to i8***
%5 = getelementptr inbounds i8**, i8*** %4, i64 -1
%.valueWitnesses = load i8**, i8*** %5, align 8, !invariant.load !64, !dereferenceable !65
%6 = bitcast i8** %.valueWitnesses to %swift.vwtable*
%7 = getelementptr inbounds %swift.vwtable, %swift.vwtable* %6, i32 0, i32 10
%flags = load i32, i32* %7, align 8, !invariant.load !64
%8 = and i32 %flags, 131072
%flags.isInline = icmp eq i32 %8, 0
br i1 %flags.isInline, label %inline, label %outline
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment