You've already forked linux-packaging-mono
acceptance-tests
data
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm
bindings
cmake
docs
examples
include
lib
projects
resources
runtimes
scripts
test
Analysis
Assembler
Bindings
Bitcode
BugPoint
CodeGen
DebugInfo
AArch64
AMDGPU
ARM
COFF
Generic
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll
2009-11-05-DeadGlobalVariable.ll
2009-11-06-NamelessGlobalVariable.ll
2009-11-10-CurrentFn.ll
2010-01-05-DbgScope.ll
2010-03-12-llc-crash.ll
2010-03-19-DbgDeclare.ll
2010-03-24-MemberFn.ll
2010-04-06-NestedFnDbgInfo.ll
2010-04-19-FramePtr.ll
2010-05-03-DisableFramePtr.ll
2010-05-03-OriginDIE.ll
2010-05-10-MultipleCU.ll
2010-06-29-InlinedFnLocalVar.ll
2010-10-01-crash.ll
PR20038.ll
accel-table-hash-collisions.ll
array.ll
block-asan.ll
bug_null_debuginfo.ll
constant-pointers.ll
constant-sdnodes-have-dbg-location.ll
constantfp-sdnodes-have-dbg-location.ll
containing-type-extension.ll
cross-cu-inlining.ll
cross-cu-linkonce-distinct.ll
cross-cu-linkonce.ll
cu-range-hole.ll
cu-ranges.ll
dbg-at-specficiation.ll
dead-argument-order.ll
debug-info-always-inline.ll
debug-info-qualifiers.ll
debuginfofinder-forward-declaration.ll
debuginfofinder-inlined-cu.ll
debuginfofinder-multiple-cu.ll
def-line.ll
discriminator.ll
dwarf-public-names.ll
empty.ll
enum-types.ll
enum.ll
global-sra-array.ll
global-sra-single-member.ll
global-sra-struct.ll
global.ll
gmlt.test
gmlt_profiling.ll
gvn.ll
imported-name-inlined.ll
incorrect-variable-debugloc.ll
incorrect-variable-debugloc1.ll
indvar-discriminator.ll
inheritance.ll
inline-debug-info-multiret.ll
inline-debug-info.ll
inline-debug-loc.ll
inline-no-debug-info.ll
inline-scopes.ll
inlined-arguments.ll
inlined-vars.ll
instcombine-phi.ll
invalid.ll
licm-hoist-debug-loc.ll
linkage-name-abstract.ll
lit.local.cfg
location-verifier.ll
lto-comp-dir.ll
mainsubprogram.ll
member-order.ll
member-pointers.ll
missing-abstract-variable.ll
multiline.ll
namespace.ll
namespace_function_definition.ll
namespace_inline_function_definition.ll
noscopes.ll
piece-verifier.ll
ptrsize.ll
recursive_inlining.ll
restrict.ll
simplifycfg_sink_last_inst.ll
skeletoncu.ll
sroa-larger.ll
sroa-samesize.ll
store-tail-merge.ll
sugared-constants.ll
sunk-compare.ll
template-recursive-void.ll
thrownTypes.ll
tu-composite.ll
tu-member-pointer.ll
two-cus-from-same-file.ll
typedef.ll
unconditional-branch.ll
varargs.ll
version.ll
virtual-index.ll
Inputs
Lanai
MIR
MSP430
Mips
PDB
PowerPC
Sparc
SystemZ
WebAssembly
X86
arm-relocs.test
cross-cu-scope.ll
debugify.ll
debuglineinfo-macho.test
debuglineinfo.test
debugmacinfo.test
dwarfdump-64-bit-dwarf.test
dwarfdump-accel.test
dwarfdump-debug-frame-simple.test
dwarfdump-decompression-corrupt.test
dwarfdump-decompression-error.test
dwarfdump-dump-flags.test
dwarfdump-dump-gdbindex.test
dwarfdump-dwp.test
dwarfdump-implicit-const.test
dwarfdump-invalid.test
dwarfdump-macho-relocs.test
dwarfdump-macho-universal.test
dwarfdump-objc.test
dwarfdump-pubnames.test
dwarfdump-ranges.test
dwarfdump-type-units.test
dwarfdump-zlib.test
dwo.ll
invalid-relocations.test
llvm-symbolizer-split-dwarf-empty.test
llvm-symbolizer-zlib.test
llvm-symbolizer.test
macro_link.ll
omit-empty.ll
pr34186.ll
pr34672.ll
skeletoncu.ll
strip-DIGlobalVariable.ll
strip-loop-metadata.ll
typeunit-header.test
unrolled-loop-remainder.ll
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
LTO
Linker
MC
Object
ObjectYAML
Other
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO
Transforms
Unit
Verifier
YAMLParser
tools
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
ikvm-native
libgc
llvm
m4
man
mcs
mk
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
156 lines
9.9 KiB
LLVM
156 lines
9.9 KiB
LLVM
![]() |
; RUN: llc %s -o /dev/null
|
||
|
; PR 2613.
|
||
|
|
||
|
%struct.__class_type_info_pseudo = type { %struct.__type_info_pseudo }
|
||
|
%struct.__type_info_pseudo = type { i8*, i8* }
|
||
|
%struct.test1 = type { i32 (...)** }
|
||
|
|
||
|
@_ZTV5test1 = weak_odr constant [4 x i32 (...)*] [i32 (...)* null, i32 (...)* bitcast (%struct.__class_type_info_pseudo* @_ZTI5test1 to i32 (...)*), i32 (...)* bitcast (void (%struct.test1*)* @_ZN5test1D1Ev to i32 (...)*), i32 (...)* bitcast (void (%struct.test1*)* @_ZN5test1D0Ev to i32 (...)*)], align 32 ; <[4 x i32 (...)*]*> [#uses=1]
|
||
|
@_ZTI5test1 = weak_odr constant %struct.__class_type_info_pseudo { %struct.__type_info_pseudo { i8* inttoptr (i64 add (i64 ptrtoint ([0 x i32 (...)*]* @_ZTVN10__cxxabiv117__class_type_infoE to i64), i64 16) to i8*), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @_ZTS5test1, i64 0, i64 0) } }, align 16 ; <%struct.__class_type_info_pseudo*> [#uses=1]
|
||
|
@_ZTVN10__cxxabiv117__class_type_infoE = external constant [0 x i32 (...)*] ; <[0 x i32 (...)*]*> [#uses=1]
|
||
|
@_ZTS5test1 = weak_odr constant [7 x i8] c"5test1\00" ; <[7 x i8]*> [#uses=2]
|
||
|
|
||
|
define i32 @main() nounwind ssp {
|
||
|
entry:
|
||
|
%retval = alloca i32 ; <i32*> [#uses=2]
|
||
|
%0 = alloca i32 ; <i32*> [#uses=2]
|
||
|
%tst = alloca %struct.test1 ; <%struct.test1*> [#uses=1]
|
||
|
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
|
||
|
call void @llvm.dbg.declare(metadata %struct.test1* %tst, metadata !0, metadata !DIExpression()), !dbg !21
|
||
|
call void @_ZN5test1C1Ev(%struct.test1* %tst) nounwind, !dbg !22
|
||
|
store i32 0, i32* %0, align 4, !dbg !23
|
||
|
%1 = load i32, i32* %0, align 4, !dbg !23 ; <i32> [#uses=1]
|
||
|
store i32 %1, i32* %retval, align 4, !dbg !23
|
||
|
br label %return, !dbg !23
|
||
|
|
||
|
return: ; preds = %entry
|
||
|
%retval1 = load i32, i32* %retval, !dbg !23 ; <i32> [#uses=1]
|
||
|
ret i32 %retval1, !dbg !23
|
||
|
}
|
||
|
|
||
|
define linkonce_odr void @_ZN5test1C1Ev(%struct.test1* %this) nounwind ssp align 2 {
|
||
|
entry:
|
||
|
%this_addr = alloca %struct.test1* ; <%struct.test1**> [#uses=2]
|
||
|
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
|
||
|
call void @llvm.dbg.declare(metadata %struct.test1** %this_addr, metadata !24, metadata !DIExpression()), !dbg !28
|
||
|
store %struct.test1* %this, %struct.test1** %this_addr
|
||
|
%0 = load %struct.test1*, %struct.test1** %this_addr, align 8, !dbg !28 ; <%struct.test1*> [#uses=1]
|
||
|
%1 = getelementptr inbounds %struct.test1, %struct.test1* %0, i32 0, i32 0, !dbg !28 ; <i32 (...)***> [#uses=1]
|
||
|
store i32 (...)** getelementptr inbounds ([4 x i32 (...)*], [4 x i32 (...)*]* @_ZTV5test1, i64 0, i64 2), i32 (...)*** %1, align 8, !dbg !28
|
||
|
br label %return, !dbg !28
|
||
|
|
||
|
return: ; preds = %entry
|
||
|
ret void, !dbg !29
|
||
|
}
|
||
|
|
||
|
declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
|
||
|
|
||
|
define linkonce_odr void @_ZN5test1D1Ev(%struct.test1* %this) nounwind ssp align 2 {
|
||
|
entry:
|
||
|
%this_addr = alloca %struct.test1* ; <%struct.test1**> [#uses=3]
|
||
|
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
|
||
|
call void @llvm.dbg.declare(metadata %struct.test1** %this_addr, metadata !32, metadata !DIExpression()), !dbg !34
|
||
|
store %struct.test1* %this, %struct.test1** %this_addr
|
||
|
%0 = load %struct.test1*, %struct.test1** %this_addr, align 8, !dbg !35 ; <%struct.test1*> [#uses=1]
|
||
|
%1 = getelementptr inbounds %struct.test1, %struct.test1* %0, i32 0, i32 0, !dbg !35 ; <i32 (...)***> [#uses=1]
|
||
|
store i32 (...)** getelementptr inbounds ([4 x i32 (...)*], [4 x i32 (...)*]* @_ZTV5test1, i64 0, i64 2), i32 (...)*** %1, align 8, !dbg !35
|
||
|
br label %bb, !dbg !37
|
||
|
|
||
|
bb: ; preds = %entry
|
||
|
%2 = trunc i32 0 to i8, !dbg !37 ; <i8> [#uses=1]
|
||
|
%toBool = icmp ne i8 %2, 0, !dbg !37 ; <i1> [#uses=1]
|
||
|
br i1 %toBool, label %bb1, label %bb2, !dbg !37
|
||
|
|
||
|
bb1: ; preds = %bb
|
||
|
%3 = load %struct.test1*, %struct.test1** %this_addr, align 8, !dbg !37 ; <%struct.test1*> [#uses=1]
|
||
|
%4 = bitcast %struct.test1* %3 to i8*, !dbg !37 ; <i8*> [#uses=1]
|
||
|
call void @_ZdlPv(i8* %4) nounwind, !dbg !37
|
||
|
br label %bb2, !dbg !37
|
||
|
|
||
|
bb2: ; preds = %bb1, %bb
|
||
|
br label %return, !dbg !37
|
||
|
|
||
|
return: ; preds = %bb2
|
||
|
ret void, !dbg !37
|
||
|
}
|
||
|
|
||
|
define linkonce_odr void @_ZN5test1D0Ev(%struct.test1* %this) nounwind ssp align 2 {
|
||
|
entry:
|
||
|
%this_addr = alloca %struct.test1* ; <%struct.test1**> [#uses=3]
|
||
|
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
|
||
|
call void @llvm.dbg.declare(metadata %struct.test1** %this_addr, metadata !38, metadata !DIExpression()), !dbg !40
|
||
|
store %struct.test1* %this, %struct.test1** %this_addr
|
||
|
%0 = load %struct.test1*, %struct.test1** %this_addr, align 8, !dbg !41 ; <%struct.test1*> [#uses=1]
|
||
|
%1 = getelementptr inbounds %struct.test1, %struct.test1* %0, i32 0, i32 0, !dbg !41 ; <i32 (...)***> [#uses=1]
|
||
|
store i32 (...)** getelementptr inbounds ([4 x i32 (...)*], [4 x i32 (...)*]* @_ZTV5test1, i64 0, i64 2), i32 (...)*** %1, align 8, !dbg !41
|
||
|
br label %bb, !dbg !43
|
||
|
|
||
|
bb: ; preds = %entry
|
||
|
%2 = trunc i32 1 to i8, !dbg !43 ; <i8> [#uses=1]
|
||
|
%toBool = icmp ne i8 %2, 0, !dbg !43 ; <i1> [#uses=1]
|
||
|
br i1 %toBool, label %bb1, label %bb2, !dbg !43
|
||
|
|
||
|
bb1: ; preds = %bb
|
||
|
%3 = load %struct.test1*, %struct.test1** %this_addr, align 8, !dbg !43 ; <%struct.test1*> [#uses=1]
|
||
|
%4 = bitcast %struct.test1* %3 to i8*, !dbg !43 ; <i8*> [#uses=1]
|
||
|
call void @_ZdlPv(i8* %4) nounwind, !dbg !43
|
||
|
br label %bb2, !dbg !43
|
||
|
|
||
|
bb2: ; preds = %bb1, %bb
|
||
|
br label %return, !dbg !43
|
||
|
|
||
|
return: ; preds = %bb2
|
||
|
ret void, !dbg !43
|
||
|
}
|
||
|
|
||
|
declare void @_ZdlPv(i8*) nounwind
|
||
|
|
||
|
!llvm.dbg.cu = !{!4}
|
||
|
!0 = !DILocalVariable(name: "tst", line: 13, scope: !1, file: !4, type: !8)
|
||
|
!1 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !2)
|
||
|
!2 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !3)
|
||
|
!3 = distinct !DISubprogram(name: "main", linkageName: "main", line: 11, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !4, scope: !4, type: !5)
|
||
|
!4 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !44, enums: !45, retainedTypes: !45)
|
||
|
!5 = !DISubroutineType(types: !6)
|
||
|
!6 = !{!7}
|
||
|
!7 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
||
|
!8 = !DICompositeType(tag: DW_TAG_structure_type, name: "test1", line: 1, size: 64, align: 64, file: !44, scope: !4, elements: !9, vtableHolder: !8)
|
||
|
!9 = !{!10, !14, !18}
|
||
|
!10 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$test1", line: 1, size: 64, align: 64, file: !44, scope: !8, baseType: !11)
|
||
|
!11 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, file: !4, baseType: !12)
|
||
|
!12 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", scope: !4, baseType: !5)
|
||
|
!13 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: false, emissionKind: FullDebug, file: !46, enums: !45, retainedTypes: !45)
|
||
|
!14 = !DISubprogram(name: "test1", line: 1, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrivate, isOptimized: false, scope: !8, type: !15)
|
||
|
!15 = !DISubroutineType(types: !16)
|
||
|
!16 = !{null, !17}
|
||
|
!17 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial, file: !4, baseType: !8)
|
||
|
!18 = !DISubprogram(name: "~test1", line: 4, isLocal: false, isDefinition: false, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 6, isOptimized: false, scope: !8, type: !19, containingType: !8)
|
||
|
!19 = !DISubroutineType(types: !20)
|
||
|
!20 = !{null, !17, !7}
|
||
|
!21 = !DILocation(line: 11, scope: !1)
|
||
|
!22 = !DILocation(line: 13, scope: !1)
|
||
|
!23 = !DILocation(line: 14, scope: !1)
|
||
|
!24 = !DILocalVariable(name: "this", line: 13, arg: 1, scope: !25, file: !4, type: !26)
|
||
|
!25 = distinct !DISubprogram(name: "test1", linkageName: "_ZN5test1C1Ev", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !4, scope: !4, type: !15)
|
||
|
!26 = !DIDerivedType(tag: DW_TAG_const_type, size: 64, align: 64, flags: DIFlagArtificial, file: !4, baseType: !27)
|
||
|
!27 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, file: !4, baseType: !8)
|
||
|
!28 = !DILocation(line: 1, scope: !25)
|
||
|
!29 = !DILocation(line: 1, scope: !30)
|
||
|
!30 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !31)
|
||
|
!31 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !25)
|
||
|
!32 = !DILocalVariable(name: "this", line: 4, arg: 1, scope: !33, file: !4, type: !26)
|
||
|
!33 = distinct !DISubprogram(name: "~test1", linkageName: "_ZN5test1D1Ev", line: 4, isLocal: false, isDefinition: true, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 6, isOptimized: false, unit: !4, scope: !8, type: !15, containingType: !8)
|
||
|
!34 = !DILocation(line: 4, scope: !33)
|
||
|
!35 = !DILocation(line: 5, scope: !36)
|
||
|
!36 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !33)
|
||
|
!37 = !DILocation(line: 6, scope: !36)
|
||
|
!38 = !DILocalVariable(name: "this", line: 4, arg: 1, scope: !39, file: !4, type: !26)
|
||
|
!39 = distinct !DISubprogram(name: "~test1", linkageName: "_ZN5test1D0Ev", line: 4, isLocal: false, isDefinition: true, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 6, isOptimized: false, unit: !4, scope: !8, type: !15, containingType: !8)
|
||
|
!40 = !DILocation(line: 4, scope: !39)
|
||
|
!41 = !DILocation(line: 5, scope: !42)
|
||
|
!42 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !39)
|
||
|
!43 = !DILocation(line: 6, scope: !42)
|
||
|
!44 = !DIFile(filename: "inheritance.cpp", directory: "/tmp/")
|
||
|
!45 = !{i32 0}
|
||
|
!46 = !DIFile(filename: "<built-in>", directory: "/tmp/")
|