|
|
@@ -2,7 +2,7 @@
|
|
|
// Exceptions. See /LICENSE for license information.
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
//
|
|
|
-// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
|
|
|
+// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/full.carbon
|
|
|
//
|
|
|
// AUTOUPDATE
|
|
|
// TIP: To test this file alone, run:
|
|
|
@@ -12,7 +12,16 @@
|
|
|
|
|
|
// --- other.carbon
|
|
|
package Other;
|
|
|
-fn F() {}
|
|
|
+fn NoArgs() {}
|
|
|
+fn BoolArg(a: bool) {
|
|
|
+ a;
|
|
|
+}
|
|
|
+fn IntArg(a: i32) {
|
|
|
+ a;
|
|
|
+}
|
|
|
+fn FloatArg(a: f32) {
|
|
|
+ a;
|
|
|
+}
|
|
|
// --- function.carbon
|
|
|
|
|
|
library "[[@TEST_NAME]]";
|
|
|
@@ -20,7 +29,10 @@ library "[[@TEST_NAME]]";
|
|
|
import Other;
|
|
|
import Cpp inline '''
|
|
|
void G() {
|
|
|
- Carbon::Other::F();
|
|
|
+ Carbon::Other::NoArgs();
|
|
|
+ Carbon::Other::BoolArg(true);
|
|
|
+ Carbon::Other::IntArg(123);
|
|
|
+ Carbon::Other::FloatArg(1.5);
|
|
|
}
|
|
|
''';
|
|
|
|
|
|
@@ -50,11 +62,29 @@ fn H() { Cpp.G2(); }
|
|
|
// CHECK:STDOUT: source_filename = "other.carbon"
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
-// CHECK:STDOUT: define void @_CF.Other() #0 !dbg !4 {
|
|
|
+// CHECK:STDOUT: define void @_CNoArgs.Other() #0 !dbg !4 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: ret void, !dbg !7
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CBoolArg.Other(i1 %a) #0 !dbg !8 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: ret void, !dbg !14
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CIntArg.Other(i32 %a) #0 !dbg !15 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: ret void, !dbg !21
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CFloatArg.Other(float %a) #0 !dbg !22 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: ret void, !dbg !25
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: attributes #0 = { nounwind }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !llvm.module.flags = !{!0, !1}
|
|
|
@@ -64,10 +94,28 @@ fn H() { Cpp.G2(); }
|
|
|
// CHECK:STDOUT: !1 = !{i32 2, !"Debug Info Version", i32 3}
|
|
|
// CHECK:STDOUT: !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
|
|
// CHECK:STDOUT: !3 = !DIFile(filename: "other.carbon", directory: "")
|
|
|
-// CHECK:STDOUT: !4 = distinct !DISubprogram(name: "F", linkageName: "_CF.Other", scope: null, file: !3, line: 2, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !4 = distinct !DISubprogram(name: "NoArgs", linkageName: "_CNoArgs.Other", scope: null, file: !3, line: 2, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !5 = !DISubroutineType(types: !6)
|
|
|
// CHECK:STDOUT: !6 = !{null}
|
|
|
// CHECK:STDOUT: !7 = !DILocation(line: 2, column: 1, scope: !4)
|
|
|
+// CHECK:STDOUT: !8 = distinct !DISubprogram(name: "BoolArg", linkageName: "_CBoolArg.Other", scope: null, file: !3, line: 3, type: !9, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !12)
|
|
|
+// CHECK:STDOUT: !9 = !DISubroutineType(types: !10)
|
|
|
+// CHECK:STDOUT: !10 = !{null, !11}
|
|
|
+// CHECK:STDOUT: !11 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
|
|
|
+// CHECK:STDOUT: !12 = !{!13}
|
|
|
+// CHECK:STDOUT: !13 = !DILocalVariable(arg: 1, scope: !8, type: !11)
|
|
|
+// CHECK:STDOUT: !14 = !DILocation(line: 3, column: 1, scope: !8)
|
|
|
+// CHECK:STDOUT: !15 = distinct !DISubprogram(name: "IntArg", linkageName: "_CIntArg.Other", scope: null, file: !3, line: 6, type: !16, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !19)
|
|
|
+// CHECK:STDOUT: !16 = !DISubroutineType(types: !17)
|
|
|
+// CHECK:STDOUT: !17 = !{null, !18}
|
|
|
+// CHECK:STDOUT: !18 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
|
|
+// CHECK:STDOUT: !19 = !{!20}
|
|
|
+// CHECK:STDOUT: !20 = !DILocalVariable(arg: 1, scope: !15, type: !18)
|
|
|
+// CHECK:STDOUT: !21 = !DILocation(line: 6, column: 1, scope: !15)
|
|
|
+// CHECK:STDOUT: !22 = distinct !DISubprogram(name: "FloatArg", linkageName: "_CFloatArg.Other", scope: null, file: !3, line: 9, type: !9, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !23)
|
|
|
+// CHECK:STDOUT: !23 = !{!24}
|
|
|
+// CHECK:STDOUT: !24 = !DILocalVariable(arg: 1, scope: !22, type: !11)
|
|
|
+// CHECK:STDOUT: !25 = !DILocation(line: 9, column: 1, scope: !22)
|
|
|
// CHECK:STDOUT: ; ModuleID = 'function.carbon'
|
|
|
// CHECK:STDOUT: source_filename = "function.carbon"
|
|
|
// CHECK:STDOUT: target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
|
|
|
@@ -76,14 +124,91 @@ fn H() { Cpp.G2(); }
|
|
|
// CHECK:STDOUT: ; Function Attrs: mustprogress uwtable
|
|
|
// CHECK:STDOUT: define dso_local void @_Z1Gv() #0 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
-// CHECK:STDOUT: call void @_CF.Other()
|
|
|
+// CHECK:STDOUT: call void @_ZL17NoArgs__cpp_thunkv()
|
|
|
+// CHECK:STDOUT: call void @_ZL18BoolArg__cpp_thunkb(i1 noundef zeroext true)
|
|
|
+// CHECK:STDOUT: call void @_ZL17IntArg__cpp_thunki(i32 noundef 123)
|
|
|
+// CHECK:STDOUT: call void @_ZL19FloatArg__cpp_thunkf(float noundef 1.500000e+00)
|
|
|
+// CHECK:STDOUT: ret void
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress nounwind uwtable
|
|
|
+// CHECK:STDOUT: define internal void @_ZL17NoArgs__cpp_thunkv() #1 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: call void @_CNoArgs__carbon_thunk.Other()
|
|
|
// CHECK:STDOUT: ret void
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: declare void @_CF.Other() #1
|
|
|
+// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress nounwind uwtable
|
|
|
+// CHECK:STDOUT: define internal void @_ZL18BoolArg__cpp_thunkb(i1 noundef zeroext %0) #1 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: %.addr = alloca i8, align 1
|
|
|
+// CHECK:STDOUT: %storedv = zext i1 %0 to i8
|
|
|
+// CHECK:STDOUT: store i8 %storedv, ptr %.addr, align 1, !tbaa !11
|
|
|
+// CHECK:STDOUT: call void @_CBoolArg__carbon_thunk.Other(ptr noundef nonnull align 1 dereferenceable(1) %.addr)
|
|
|
+// CHECK:STDOUT: ret void
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress nounwind uwtable
|
|
|
+// CHECK:STDOUT: define internal void @_ZL17IntArg__cpp_thunki(i32 noundef %0) #1 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: %.addr = alloca i32, align 4
|
|
|
+// CHECK:STDOUT: store i32 %0, ptr %.addr, align 4, !tbaa !7
|
|
|
+// CHECK:STDOUT: call void @_CIntArg__carbon_thunk.Other(ptr noundef nonnull align 4 dereferenceable(4) %.addr)
|
|
|
+// CHECK:STDOUT: ret void
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress nounwind uwtable
|
|
|
+// CHECK:STDOUT: define internal void @_ZL19FloatArg__cpp_thunkf(float noundef %0) #1 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: %.addr = alloca float, align 4
|
|
|
+// CHECK:STDOUT: store float %0, ptr %.addr, align 4, !tbaa !13
|
|
|
+// CHECK:STDOUT: call void @_CFloatArg__carbon_thunk.Other(ptr noundef nonnull align 4 dereferenceable(4) %.addr)
|
|
|
+// CHECK:STDOUT: ret void
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: declare void @_CNoArgs.Other()
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CNoArgs__carbon_thunk.Other() #2 !dbg !15 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: call void @_CNoArgs.Other(), !dbg !19
|
|
|
+// CHECK:STDOUT: ret void, !dbg !19
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: declare void @_CBoolArg.Other(i1)
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CBoolArg__carbon_thunk.Other(ptr %_) #2 !dbg !20 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: %.1 = load i8, ptr %_, align 1, !dbg !26
|
|
|
+// CHECK:STDOUT: %.11 = trunc i8 %.1 to i1, !dbg !26
|
|
|
+// CHECK:STDOUT: call void @_CBoolArg.Other(i1 %.11), !dbg !26
|
|
|
+// CHECK:STDOUT: ret void, !dbg !26
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: declare void @_CIntArg.Other(i32)
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CIntArg__carbon_thunk.Other(ptr %_) #2 !dbg !27 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: %.1 = load i32, ptr %_, align 4, !dbg !33
|
|
|
+// CHECK:STDOUT: call void @_CIntArg.Other(i32 %.1), !dbg !33
|
|
|
+// CHECK:STDOUT: ret void, !dbg !33
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: declare void @_CFloatArg.Other(float)
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CFloatArg__carbon_thunk.Other(ptr %_) #2 !dbg !34 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: %.1 = load float, ptr %_, align 4, !dbg !37
|
|
|
+// CHECK:STDOUT: call void @_CFloatArg.Other(float %.1), !dbg !37
|
|
|
+// CHECK:STDOUT: ret void, !dbg !37
|
|
|
+// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: attributes #0 = { mustprogress 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" }
|
|
|
-// CHECK:STDOUT: attributes #1 = { "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" }
|
|
|
+// CHECK:STDOUT: attributes #1 = { alwaysinline mustprogress nounwind 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" }
|
|
|
+// CHECK:STDOUT: attributes #2 = { nounwind }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !llvm.module.flags = !{!0, !1, !2, !3, !4}
|
|
|
// CHECK:STDOUT: !llvm.dbg.cu = !{!5}
|
|
|
@@ -100,6 +225,33 @@ fn H() { Cpp.G2(); }
|
|
|
// CHECK:STDOUT: !8 = !{!"int", !9, i64 0}
|
|
|
// CHECK:STDOUT: !9 = !{!"omnipotent char", !10, i64 0}
|
|
|
// CHECK:STDOUT: !10 = !{!"Simple C++ TBAA"}
|
|
|
+// CHECK:STDOUT: !11 = !{!12, !12, i64 0}
|
|
|
+// CHECK:STDOUT: !12 = !{!"bool", !9, i64 0}
|
|
|
+// CHECK:STDOUT: !13 = !{!14, !14, i64 0}
|
|
|
+// CHECK:STDOUT: !14 = !{!"float", !9, i64 0}
|
|
|
+// CHECK:STDOUT: !15 = distinct !DISubprogram(name: "NoArgs__carbon_thunk", linkageName: "_CNoArgs__carbon_thunk.Other", scope: null, file: !16, line: 2, type: !17, spFlags: DISPFlagDefinition, unit: !5)
|
|
|
+// CHECK:STDOUT: !16 = !DIFile(filename: "other.carbon", directory: "")
|
|
|
+// CHECK:STDOUT: !17 = !DISubroutineType(types: !18)
|
|
|
+// CHECK:STDOUT: !18 = !{null}
|
|
|
+// CHECK:STDOUT: !19 = !DILocation(line: 2, column: 1, scope: !15)
|
|
|
+// CHECK:STDOUT: !20 = distinct !DISubprogram(name: "BoolArg__carbon_thunk", linkageName: "_CBoolArg__carbon_thunk.Other", scope: null, file: !16, line: 3, type: !21, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !24)
|
|
|
+// CHECK:STDOUT: !21 = !DISubroutineType(types: !22)
|
|
|
+// CHECK:STDOUT: !22 = !{null, !23}
|
|
|
+// CHECK:STDOUT: !23 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
|
|
|
+// CHECK:STDOUT: !24 = !{!25}
|
|
|
+// CHECK:STDOUT: !25 = !DILocalVariable(arg: 1, scope: !20, type: !23)
|
|
|
+// CHECK:STDOUT: !26 = !DILocation(line: 3, column: 1, scope: !20)
|
|
|
+// CHECK:STDOUT: !27 = distinct !DISubprogram(name: "IntArg__carbon_thunk", linkageName: "_CIntArg__carbon_thunk.Other", scope: null, file: !16, line: 6, type: !28, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !31)
|
|
|
+// CHECK:STDOUT: !28 = !DISubroutineType(types: !29)
|
|
|
+// CHECK:STDOUT: !29 = !{null, !30}
|
|
|
+// CHECK:STDOUT: !30 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
|
|
+// CHECK:STDOUT: !31 = !{!32}
|
|
|
+// CHECK:STDOUT: !32 = !DILocalVariable(arg: 1, scope: !27, type: !30)
|
|
|
+// CHECK:STDOUT: !33 = !DILocation(line: 6, column: 1, scope: !27)
|
|
|
+// CHECK:STDOUT: !34 = distinct !DISubprogram(name: "FloatArg__carbon_thunk", linkageName: "_CFloatArg__carbon_thunk.Other", scope: null, file: !16, line: 9, type: !21, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !35)
|
|
|
+// CHECK:STDOUT: !35 = !{!36}
|
|
|
+// CHECK:STDOUT: !36 = !DILocalVariable(arg: 1, scope: !34, type: !23)
|
|
|
+// CHECK:STDOUT: !37 = !DILocation(line: 9, column: 1, scope: !34)
|
|
|
// CHECK:STDOUT: ; ModuleID = 'single_file.carbon'
|
|
|
// CHECK:STDOUT: source_filename = "single_file.carbon"
|
|
|
// CHECK:STDOUT: target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
|
|
|
@@ -116,10 +268,17 @@ fn H() { Cpp.G2(); }
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
-// CHECK:STDOUT: define void @_CH.Main() #0 !dbg !15 {
|
|
|
+// CHECK:STDOUT: define void @_CF__carbon_thunk.Main() #0 !dbg !15 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
-// CHECK:STDOUT: call void @_Z2G2v(), !dbg !16
|
|
|
-// CHECK:STDOUT: ret void, !dbg !17
|
|
|
+// CHECK:STDOUT: call void @_CF.Main(), !dbg !16
|
|
|
+// CHECK:STDOUT: ret void, !dbg !16
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: nounwind
|
|
|
+// CHECK:STDOUT: define void @_CH.Main() #0 !dbg !17 {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: call void @_Z2G2v(), !dbg !18
|
|
|
+// CHECK:STDOUT: ret void, !dbg !19
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: ; Function Attrs: inlinehint mustprogress uwtable
|
|
|
@@ -129,16 +288,23 @@ fn H() { Cpp.G2(); }
|
|
|
// CHECK:STDOUT: ret void
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: ; Function Attrs: inlinehint mustprogress nounwind uwtable
|
|
|
-// CHECK:STDOUT: define linkonce_odr dso_local void @_Z2G1v() #2 comdat {
|
|
|
+// CHECK:STDOUT: ; Function Attrs: inlinehint mustprogress uwtable
|
|
|
+// CHECK:STDOUT: define linkonce_odr dso_local void @_Z2G1v() #1 comdat {
|
|
|
+// CHECK:STDOUT: entry:
|
|
|
+// CHECK:STDOUT: call void @_ZL12F__cpp_thunkv()
|
|
|
+// CHECK:STDOUT: ret void
|
|
|
+// CHECK:STDOUT: }
|
|
|
+// CHECK:STDOUT:
|
|
|
+// CHECK:STDOUT: ; Function Attrs: alwaysinline mustprogress nounwind uwtable
|
|
|
+// CHECK:STDOUT: define internal void @_ZL12F__cpp_thunkv() #2 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
-// CHECK:STDOUT: call void @_CF.Main()
|
|
|
+// CHECK:STDOUT: call void @_CF__carbon_thunk.Main()
|
|
|
// CHECK:STDOUT: ret void
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: attributes #0 = { nounwind }
|
|
|
// CHECK:STDOUT: attributes #1 = { inlinehint mustprogress 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" }
|
|
|
-// CHECK:STDOUT: attributes #2 = { inlinehint mustprogress nounwind 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" }
|
|
|
+// CHECK:STDOUT: attributes #2 = { alwaysinline mustprogress nounwind 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" }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: !llvm.module.flags = !{!0, !1, !2, !3, !4}
|
|
|
// CHECK:STDOUT: !llvm.dbg.cu = !{!5}
|
|
|
@@ -159,6 +325,8 @@ fn H() { Cpp.G2(); }
|
|
|
// CHECK:STDOUT: !12 = !DISubroutineType(types: !13)
|
|
|
// CHECK:STDOUT: !13 = !{null}
|
|
|
// CHECK:STDOUT: !14 = !DILocation(line: 6, column: 1, scope: !11)
|
|
|
-// CHECK:STDOUT: !15 = distinct !DISubprogram(name: "H", linkageName: "_CH.Main", scope: null, file: !6, line: 20, type: !12, spFlags: DISPFlagDefinition, unit: !5)
|
|
|
-// CHECK:STDOUT: !16 = !DILocation(line: 20, column: 10, scope: !15)
|
|
|
-// CHECK:STDOUT: !17 = !DILocation(line: 20, column: 1, scope: !15)
|
|
|
+// CHECK:STDOUT: !15 = distinct !DISubprogram(name: "F__carbon_thunk", linkageName: "_CF__carbon_thunk.Main", scope: null, file: !6, line: 6, type: !12, spFlags: DISPFlagDefinition, unit: !5)
|
|
|
+// CHECK:STDOUT: !16 = !DILocation(line: 6, column: 1, scope: !15)
|
|
|
+// CHECK:STDOUT: !17 = distinct !DISubprogram(name: "H", linkageName: "_CH.Main", scope: null, file: !6, line: 20, type: !12, spFlags: DISPFlagDefinition, unit: !5)
|
|
|
+// CHECK:STDOUT: !18 = !DILocation(line: 20, column: 10, scope: !17)
|
|
|
+// CHECK:STDOUT: !19 = !DILocation(line: 20, column: 1, scope: !17)
|