[llvm] [LLVM] Create `lf_alias` nodes for `typedef` and `using` (PR #153936)

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 6 08:51:18 PDT 2025


================
@@ -0,0 +1,55 @@
+; ModuleID = 'typedef.cpp'
+source_filename = "typedef.cpp"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-pc-windows-msvc19.44.35214"
+
+@"?__purecall@@3PEAXEA" = dso_local global ptr null, align 8, !dbg !0
+
+; Function Attrs: mustprogress noinline norecurse nounwind optnone uwtable
+define dso_local noundef i32 @main() #0 !dbg !14 {
+entry:
+  %retval = alloca i32, align 4
+  %val = alloca i8, align 1
+  %val2 = alloca i64, align 8
+  store i32 0, ptr %retval, align 4
+    #dbg_declare(ptr %val, !19, !DIExpression(), !22)
+  store i8 15, ptr %val, align 1, !dbg !22
+    #dbg_declare(ptr %val2, !23, !DIExpression(), !26)
+  store i64 -1, ptr %val2, align 8, !dbg !26
+  ret i32 0, !dbg !27
+}
+
+attributes #0 = { mustprogress noinline norecurse nounwind optnone uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
+
+!llvm.dbg.cu = !{!2}
+!llvm.module.flags = !{!7, !8, !9, !10, !11, !12}
+!llvm.ident = !{!13}
+
+!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
+!1 = distinct !DIGlobalVariable(name: "__purecall", linkageName: "?__purecall@@3PEAXEA", scope: !2, file: !5, line: 1, type: !6, isLocal: false, isDefinition: true)
+!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !3, producer: "clang version 22.0.0git (https://github.com/Walnut356/llvm-project.git 0e257f7d7edfcda5655eeaac55d0ffc398e773a2)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: None)
+!3 = !DIFile(filename: "typedef.cpp", directory: "llvm-project", checksumkind: CSK_MD5, checksum: "8c85f4e9ba063d42c5a4ad392521faa3")
----------------
aganea wrote:

Same here, don't think you need these checksums.

https://github.com/llvm/llvm-project/pull/153936


More information about the llvm-commits mailing list