2016-03-03 01:58:31 +08:00
; RUN: llc -disable-fp-elim -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s
2015-02-11 07:32:56 +08:00
; Test that a variable with multiple entries in the MMI table makes it into the
; debug info.
;
; CHECK: DW_TAG_inlined_subroutine
; CHECK: "_Z3f111A"
; CHECK: DW_TAG_formal_parameter
2016-12-10 04:43:40 +08:00
; CHECK: DW_AT_location [DW_FORM_block1] (<0x0c> 93 01 91 51 93 0f 93 01 91 4a 93 07 )
; -- piece 0x00000001, fbreg -47, piece 0x0000000f, piece 0x00000001, fbreg -54, piece 0x00000007 ------^
2015-02-11 07:32:56 +08:00
; CHECK: DW_AT_abstract_origin {{.*}} "p1"
;
; long a;
; struct A {
; bool x4;
; void *x5;
; bool x6;
; };
; int *b;
; struct B {
; B(long);
; ~B();
; };
; void f9(A);
; void f13(A p1) {
; b = (int *)__builtin_operator_new(a);
; f9(p1);
; }
; void f11(A p1) { f13(p1); }
; void f16() {
; A c;
; B d(a);
; c.x6 = c.x4 = true;
; f11(c);
; }
; ModuleID = 'test.cpp'
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-apple-ios"
%struct.A = type { i8 , i8 * , i8 }
%struct.B = type { i8 }
2016-09-13 09:12:59 +08:00
@a = global i64 0 , align 8 , !dbg !41
@b = global i32 * null , align 8 , !dbg !42
2015-02-11 07:32:56 +08:00
2015-11-06 06:03:56 +08:00
define void @_Z3f131A ( %struct.A * nocapture readonly %p1 ) #0 !dbg !25 {
2015-02-11 07:32:56 +08:00
entry:
%agg.tmp = alloca %struct.A , align 8
tail call void @llvm.dbg.declare ( metadata %struct.A * %p1 , metadata !30 , metadata !46 ) , !dbg !47
2015-02-28 05:17:42 +08:00
%0 = load i64 , i64 * @a , align 8 , !dbg !48 , !tbaa !49
2015-02-11 07:32:56 +08:00
%call = tail call noalias i8 * @_Znwm ( i64 %0 ) #5 , !dbg !53
store i8 * %call , i8 * * bitcast ( i32 * * @b to i8 * * ) , align 8 , !dbg !54 , !tbaa !55
[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction
One of several parallel first steps to remove the target type of pointers,
replacing them with a single opaque pointer type.
This adds an explicit type parameter to the gep instruction so that when the
first parameter becomes an opaque pointer type, the type to gep through is
still available to the instructions.
* This doesn't modify gep operators, only instructions (operators will be
handled separately)
* Textual IR changes only. Bitcode (including upgrade) and changing the
in-memory representation will be in separate changes.
* geps of vectors are transformed as:
getelementptr <4 x float*> %x, ...
->getelementptr float, <4 x float*> %x, ...
Then, once the opaque pointer type is introduced, this will ultimately look
like:
getelementptr float, <4 x ptr> %x
with the unambiguous interpretation that it is a vector of pointers to float.
* address spaces remain on the pointer, not the type:
getelementptr float addrspace(1)* %x
->getelementptr float, float addrspace(1)* %x
Then, eventually:
getelementptr float, ptr addrspace(1) %x
Importantly, the massive amount of test case churn has been automated by
same crappy python code. I had to manually update a few test cases that
wouldn't fit the script's model (r228970,r229196,r229197,r229198). The
python script just massages stdin and writes the result to stdout, I
then wrapped that in a shell script to handle replacing files, then
using the usual find+xargs to migrate all the files.
update.py:
import fileinput
import sys
import re
ibrep = re.compile(r"(^.*?[^%\w]getelementptr inbounds )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
normrep = re.compile( r"(^.*?[^%\w]getelementptr )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
def conv(match, line):
if not match:
return line
line = match.groups()[0]
if len(match.groups()[5]) == 0:
line += match.groups()[2]
line += match.groups()[3]
line += ", "
line += match.groups()[1]
line += "\n"
return line
for line in sys.stdin:
if line.find("getelementptr ") == line.find("getelementptr inbounds"):
if line.find("getelementptr inbounds") != line.find("getelementptr inbounds ("):
line = conv(re.match(ibrep, line), line)
elif line.find("getelementptr ") != line.find("getelementptr ("):
line = conv(re.match(normrep, line), line)
sys.stdout.write(line)
apply.sh:
for name in "$@"
do
python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
After that, check-all (with llvm, clang, clang-tools-extra, lld,
compiler-rt, and polly all checked out).
The extra 'rm' in the apply.sh script is due to a few files in clang's test
suite using interesting unicode stuff that my python script was throwing
exceptions on. None of those files needed to be migrated, so it seemed
sufficient to ignore those cases.
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7636
llvm-svn: 230786
2015-02-28 03:29:02 +08:00
%1 = getelementptr inbounds %struct.A , %struct.A * %agg.tmp , i64 0 , i32 0 , !dbg !57
%2 = getelementptr inbounds %struct.A , %struct.A * %p1 , i64 0 , i32 0 , !dbg !57
2015-11-19 13:56:52 +08:00
call void @llvm.memcpy.p0i8.p0i8.i64 ( i8 * %1 , i8 * %2 , i64 24 , i32 8 , i1 false ) , !dbg !57 , !tbaa.struct !58
2015-02-11 07:32:56 +08:00
call void @_Z2f91A ( %struct.A * %agg.tmp ) , !dbg !61
ret void , !dbg !62
}
; Function Attrs: nounwind readnone
declare void @llvm.dbg.declare ( metadata , metadata , metadata ) #1
; Function Attrs: nobuiltin
declare noalias i8 * @_Znwm ( i64 ) #2
declare void @_Z2f91A ( %struct.A * ) #0
; Function Attrs: nounwind
2015-11-19 13:56:52 +08:00
declare void @llvm.memcpy.p0i8.p0i8.i64 ( i8 * nocapture , i8 * nocapture readonly , i64 , i32 , i1 ) #3
2015-02-11 07:32:56 +08:00
2015-11-06 06:03:56 +08:00
define void @_Z3f111A ( %struct.A * nocapture readonly %p1 ) #0 !dbg !31 {
2015-02-11 07:32:56 +08:00
entry:
%agg.tmp.i = alloca %struct.A , align 8
tail call void @llvm.dbg.declare ( metadata %struct.A * %p1 , metadata !33 , metadata !46 ) , !dbg !63
[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction
One of several parallel first steps to remove the target type of pointers,
replacing them with a single opaque pointer type.
This adds an explicit type parameter to the gep instruction so that when the
first parameter becomes an opaque pointer type, the type to gep through is
still available to the instructions.
* This doesn't modify gep operators, only instructions (operators will be
handled separately)
* Textual IR changes only. Bitcode (including upgrade) and changing the
in-memory representation will be in separate changes.
* geps of vectors are transformed as:
getelementptr <4 x float*> %x, ...
->getelementptr float, <4 x float*> %x, ...
Then, once the opaque pointer type is introduced, this will ultimately look
like:
getelementptr float, <4 x ptr> %x
with the unambiguous interpretation that it is a vector of pointers to float.
* address spaces remain on the pointer, not the type:
getelementptr float addrspace(1)* %x
->getelementptr float, float addrspace(1)* %x
Then, eventually:
getelementptr float, ptr addrspace(1) %x
Importantly, the massive amount of test case churn has been automated by
same crappy python code. I had to manually update a few test cases that
wouldn't fit the script's model (r228970,r229196,r229197,r229198). The
python script just massages stdin and writes the result to stdout, I
then wrapped that in a shell script to handle replacing files, then
using the usual find+xargs to migrate all the files.
update.py:
import fileinput
import sys
import re
ibrep = re.compile(r"(^.*?[^%\w]getelementptr inbounds )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
normrep = re.compile( r"(^.*?[^%\w]getelementptr )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
def conv(match, line):
if not match:
return line
line = match.groups()[0]
if len(match.groups()[5]) == 0:
line += match.groups()[2]
line += match.groups()[3]
line += ", "
line += match.groups()[1]
line += "\n"
return line
for line in sys.stdin:
if line.find("getelementptr ") == line.find("getelementptr inbounds"):
if line.find("getelementptr inbounds") != line.find("getelementptr inbounds ("):
line = conv(re.match(ibrep, line), line)
elif line.find("getelementptr ") != line.find("getelementptr ("):
line = conv(re.match(normrep, line), line)
sys.stdout.write(line)
apply.sh:
for name in "$@"
do
python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
After that, check-all (with llvm, clang, clang-tools-extra, lld,
compiler-rt, and polly all checked out).
The extra 'rm' in the apply.sh script is due to a few files in clang's test
suite using interesting unicode stuff that my python script was throwing
exceptions on. None of those files needed to be migrated, so it seemed
sufficient to ignore those cases.
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7636
llvm-svn: 230786
2015-02-28 03:29:02 +08:00
%0 = getelementptr inbounds %struct.A , %struct.A * %p1 , i64 0 , i32 0 , !dbg !64
%1 = getelementptr inbounds %struct.A , %struct.A * %agg.tmp.i , i64 0 , i32 0 , !dbg !65
2015-02-11 07:32:56 +08:00
call void @llvm.lifetime.start ( i64 24 , i8 * %1 ) , !dbg !65
2015-02-28 05:17:42 +08:00
%2 = load i64 , i64 * @a , align 8 , !dbg !67 , !tbaa !49
2015-02-11 07:32:56 +08:00
%call.i = tail call noalias i8 * @_Znwm ( i64 %2 ) #5 , !dbg !68
store i8 * %call.i , i8 * * bitcast ( i32 * * @b to i8 * * ) , align 8 , !dbg !69 , !tbaa !55
2015-11-19 13:56:52 +08:00
call void @llvm.memcpy.p0i8.p0i8.i64 ( i8 * %1 , i8 * %0 , i64 24 , i32 8 , i1 false ) , !dbg !70
2015-02-11 07:32:56 +08:00
call void @_Z2f91A ( %struct.A * %agg.tmp.i ) , !dbg !71
call void @llvm.lifetime.end ( i64 24 , i8 * %1 ) , !dbg !72
ret void , !dbg !73
}
2015-11-06 06:03:56 +08:00
define void @_Z3f16v ( ) #0 personality i8 * bitcast ( i32 ( . . . ) * @__gxx_personality_v0 to i8 * ) !dbg !34 {
2015-02-11 07:32:56 +08:00
entry:
%agg.tmp.i.i = alloca %struct.A , align 8
%d = alloca %struct.B , align 1
%agg.tmp.sroa.2 = alloca [ 15 x i8 ] , align 1
%agg.tmp.sroa.4 = alloca [ 7 x i8 ] , align 1
tail call void @llvm.dbg.declare ( metadata [ 15 x i8 ] * %agg.tmp.sroa.2 , metadata !74 , metadata !76 ) , !dbg !77
tail call void @llvm.dbg.declare ( metadata [ 7 x i8 ] * %agg.tmp.sroa.4 , metadata !74 , metadata !78 ) , !dbg !77
tail call void @llvm.dbg.declare ( metadata %struct.A * undef , metadata !38 , metadata !79 ) , !dbg !80
2015-02-28 05:17:42 +08:00
%0 = load i64 , i64 * @a , align 8 , !dbg !81 , !tbaa !49
2015-02-11 07:32:56 +08:00
tail call void @llvm.dbg.value ( metadata %struct.B * %d , i64 0 , metadata !39 , metadata !79 ) , !dbg !82
%call = call %struct.B * @_ZN1BC1El ( %struct.B * %d , i64 %0 ) , !dbg !82
call void @llvm.dbg.value ( metadata i8 1 , i64 0 , metadata !38 , metadata !83 ) , !dbg !80
call void @llvm.dbg.value ( metadata i8 1 , i64 0 , metadata !38 , metadata !84 ) , !dbg !80
call void @llvm.dbg.value ( metadata i8 1 , i64 0 , metadata !74 , metadata !83 ) , !dbg !77
call void @llvm.dbg.value ( metadata i8 1 , i64 0 , metadata !74 , metadata !84 ) , !dbg !77
call void @llvm.dbg.declare ( metadata %struct.A * undef , metadata !74 , metadata !46 ) , !dbg !77
[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction
One of several parallel first steps to remove the target type of pointers,
replacing them with a single opaque pointer type.
This adds an explicit type parameter to the gep instruction so that when the
first parameter becomes an opaque pointer type, the type to gep through is
still available to the instructions.
* This doesn't modify gep operators, only instructions (operators will be
handled separately)
* Textual IR changes only. Bitcode (including upgrade) and changing the
in-memory representation will be in separate changes.
* geps of vectors are transformed as:
getelementptr <4 x float*> %x, ...
->getelementptr float, <4 x float*> %x, ...
Then, once the opaque pointer type is introduced, this will ultimately look
like:
getelementptr float, <4 x ptr> %x
with the unambiguous interpretation that it is a vector of pointers to float.
* address spaces remain on the pointer, not the type:
getelementptr float addrspace(1)* %x
->getelementptr float, float addrspace(1)* %x
Then, eventually:
getelementptr float, ptr addrspace(1) %x
Importantly, the massive amount of test case churn has been automated by
same crappy python code. I had to manually update a few test cases that
wouldn't fit the script's model (r228970,r229196,r229197,r229198). The
python script just massages stdin and writes the result to stdout, I
then wrapped that in a shell script to handle replacing files, then
using the usual find+xargs to migrate all the files.
update.py:
import fileinput
import sys
import re
ibrep = re.compile(r"(^.*?[^%\w]getelementptr inbounds )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
normrep = re.compile( r"(^.*?[^%\w]getelementptr )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
def conv(match, line):
if not match:
return line
line = match.groups()[0]
if len(match.groups()[5]) == 0:
line += match.groups()[2]
line += match.groups()[3]
line += ", "
line += match.groups()[1]
line += "\n"
return line
for line in sys.stdin:
if line.find("getelementptr ") == line.find("getelementptr inbounds"):
if line.find("getelementptr inbounds") != line.find("getelementptr inbounds ("):
line = conv(re.match(ibrep, line), line)
elif line.find("getelementptr ") != line.find("getelementptr ("):
line = conv(re.match(normrep, line), line)
sys.stdout.write(line)
apply.sh:
for name in "$@"
do
python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
After that, check-all (with llvm, clang, clang-tools-extra, lld,
compiler-rt, and polly all checked out).
The extra 'rm' in the apply.sh script is due to a few files in clang's test
suite using interesting unicode stuff that my python script was throwing
exceptions on. None of those files needed to be migrated, so it seemed
sufficient to ignore those cases.
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7636
llvm-svn: 230786
2015-02-28 03:29:02 +08:00
%1 = getelementptr inbounds %struct.A , %struct.A * %agg.tmp.i.i , i64 0 , i32 0 , !dbg !85
2015-02-11 07:32:56 +08:00
call void @llvm.lifetime.start ( i64 24 , i8 * %1 ) , !dbg !85
2015-02-28 05:17:42 +08:00
%2 = load i64 , i64 * @a , align 8 , !dbg !87 , !tbaa !49
2015-02-11 07:32:56 +08:00
%call.i.i5 = invoke noalias i8 * @_Znwm ( i64 %2 ) #5
to label %call.i.i.noexc unwind label %lpad , !dbg !88
call.i.i.noexc: ; preds = %entry
[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction
One of several parallel first steps to remove the target type of pointers,
replacing them with a single opaque pointer type.
This adds an explicit type parameter to the gep instruction so that when the
first parameter becomes an opaque pointer type, the type to gep through is
still available to the instructions.
* This doesn't modify gep operators, only instructions (operators will be
handled separately)
* Textual IR changes only. Bitcode (including upgrade) and changing the
in-memory representation will be in separate changes.
* geps of vectors are transformed as:
getelementptr <4 x float*> %x, ...
->getelementptr float, <4 x float*> %x, ...
Then, once the opaque pointer type is introduced, this will ultimately look
like:
getelementptr float, <4 x ptr> %x
with the unambiguous interpretation that it is a vector of pointers to float.
* address spaces remain on the pointer, not the type:
getelementptr float addrspace(1)* %x
->getelementptr float, float addrspace(1)* %x
Then, eventually:
getelementptr float, ptr addrspace(1) %x
Importantly, the massive amount of test case churn has been automated by
same crappy python code. I had to manually update a few test cases that
wouldn't fit the script's model (r228970,r229196,r229197,r229198). The
python script just massages stdin and writes the result to stdout, I
then wrapped that in a shell script to handle replacing files, then
using the usual find+xargs to migrate all the files.
update.py:
import fileinput
import sys
import re
ibrep = re.compile(r"(^.*?[^%\w]getelementptr inbounds )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
normrep = re.compile( r"(^.*?[^%\w]getelementptr )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
def conv(match, line):
if not match:
return line
line = match.groups()[0]
if len(match.groups()[5]) == 0:
line += match.groups()[2]
line += match.groups()[3]
line += ", "
line += match.groups()[1]
line += "\n"
return line
for line in sys.stdin:
if line.find("getelementptr ") == line.find("getelementptr inbounds"):
if line.find("getelementptr inbounds") != line.find("getelementptr inbounds ("):
line = conv(re.match(ibrep, line), line)
elif line.find("getelementptr ") != line.find("getelementptr ("):
line = conv(re.match(normrep, line), line)
sys.stdout.write(line)
apply.sh:
for name in "$@"
do
python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
After that, check-all (with llvm, clang, clang-tools-extra, lld,
compiler-rt, and polly all checked out).
The extra 'rm' in the apply.sh script is due to a few files in clang's test
suite using interesting unicode stuff that my python script was throwing
exceptions on. None of those files needed to be migrated, so it seemed
sufficient to ignore those cases.
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7636
llvm-svn: 230786
2015-02-28 03:29:02 +08:00
%agg.tmp.sroa.4.17..sroa_idx = getelementptr inbounds [ 7 x i8 ] , [ 7 x i8 ] * %agg.tmp.sroa.4 , i64 0 , i64 0 , !dbg !89
%agg.tmp.sroa.2.1..sroa_idx = getelementptr inbounds [ 15 x i8 ] , [ 15 x i8 ] * %agg.tmp.sroa.2 , i64 0 , i64 0 , !dbg !89
2015-02-11 07:32:56 +08:00
store i8 * %call.i.i5 , i8 * * bitcast ( i32 * * @b to i8 * * ) , align 8 , !dbg !90 , !tbaa !55
store i8 1 , i8 * %1 , align 8 , !dbg !91
[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction
One of several parallel first steps to remove the target type of pointers,
replacing them with a single opaque pointer type.
This adds an explicit type parameter to the gep instruction so that when the
first parameter becomes an opaque pointer type, the type to gep through is
still available to the instructions.
* This doesn't modify gep operators, only instructions (operators will be
handled separately)
* Textual IR changes only. Bitcode (including upgrade) and changing the
in-memory representation will be in separate changes.
* geps of vectors are transformed as:
getelementptr <4 x float*> %x, ...
->getelementptr float, <4 x float*> %x, ...
Then, once the opaque pointer type is introduced, this will ultimately look
like:
getelementptr float, <4 x ptr> %x
with the unambiguous interpretation that it is a vector of pointers to float.
* address spaces remain on the pointer, not the type:
getelementptr float addrspace(1)* %x
->getelementptr float, float addrspace(1)* %x
Then, eventually:
getelementptr float, ptr addrspace(1) %x
Importantly, the massive amount of test case churn has been automated by
same crappy python code. I had to manually update a few test cases that
wouldn't fit the script's model (r228970,r229196,r229197,r229198). The
python script just massages stdin and writes the result to stdout, I
then wrapped that in a shell script to handle replacing files, then
using the usual find+xargs to migrate all the files.
update.py:
import fileinput
import sys
import re
ibrep = re.compile(r"(^.*?[^%\w]getelementptr inbounds )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
normrep = re.compile( r"(^.*?[^%\w]getelementptr )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
def conv(match, line):
if not match:
return line
line = match.groups()[0]
if len(match.groups()[5]) == 0:
line += match.groups()[2]
line += match.groups()[3]
line += ", "
line += match.groups()[1]
line += "\n"
return line
for line in sys.stdin:
if line.find("getelementptr ") == line.find("getelementptr inbounds"):
if line.find("getelementptr inbounds") != line.find("getelementptr inbounds ("):
line = conv(re.match(ibrep, line), line)
elif line.find("getelementptr ") != line.find("getelementptr ("):
line = conv(re.match(normrep, line), line)
sys.stdout.write(line)
apply.sh:
for name in "$@"
do
python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
After that, check-all (with llvm, clang, clang-tools-extra, lld,
compiler-rt, and polly all checked out).
The extra 'rm' in the apply.sh script is due to a few files in clang's test
suite using interesting unicode stuff that my python script was throwing
exceptions on. None of those files needed to be migrated, so it seemed
sufficient to ignore those cases.
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7636
llvm-svn: 230786
2015-02-28 03:29:02 +08:00
%agg.tmp.sroa.2.0..sroa_raw_idx = getelementptr inbounds i8 , i8 * %1 , i64 1 , !dbg !91
2015-11-19 13:56:52 +08:00
call void @llvm.memcpy.p0i8.p0i8.i64 ( i8 * %agg.tmp.sroa.2.0..sroa_raw_idx , i8 * %agg.tmp.sroa.2.1..sroa_idx , i64 15 , i32 1 , i1 false ) , !dbg !91
[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction
One of several parallel first steps to remove the target type of pointers,
replacing them with a single opaque pointer type.
This adds an explicit type parameter to the gep instruction so that when the
first parameter becomes an opaque pointer type, the type to gep through is
still available to the instructions.
* This doesn't modify gep operators, only instructions (operators will be
handled separately)
* Textual IR changes only. Bitcode (including upgrade) and changing the
in-memory representation will be in separate changes.
* geps of vectors are transformed as:
getelementptr <4 x float*> %x, ...
->getelementptr float, <4 x float*> %x, ...
Then, once the opaque pointer type is introduced, this will ultimately look
like:
getelementptr float, <4 x ptr> %x
with the unambiguous interpretation that it is a vector of pointers to float.
* address spaces remain on the pointer, not the type:
getelementptr float addrspace(1)* %x
->getelementptr float, float addrspace(1)* %x
Then, eventually:
getelementptr float, ptr addrspace(1) %x
Importantly, the massive amount of test case churn has been automated by
same crappy python code. I had to manually update a few test cases that
wouldn't fit the script's model (r228970,r229196,r229197,r229198). The
python script just massages stdin and writes the result to stdout, I
then wrapped that in a shell script to handle replacing files, then
using the usual find+xargs to migrate all the files.
update.py:
import fileinput
import sys
import re
ibrep = re.compile(r"(^.*?[^%\w]getelementptr inbounds )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
normrep = re.compile( r"(^.*?[^%\w]getelementptr )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
def conv(match, line):
if not match:
return line
line = match.groups()[0]
if len(match.groups()[5]) == 0:
line += match.groups()[2]
line += match.groups()[3]
line += ", "
line += match.groups()[1]
line += "\n"
return line
for line in sys.stdin:
if line.find("getelementptr ") == line.find("getelementptr inbounds"):
if line.find("getelementptr inbounds") != line.find("getelementptr inbounds ("):
line = conv(re.match(ibrep, line), line)
elif line.find("getelementptr ") != line.find("getelementptr ("):
line = conv(re.match(normrep, line), line)
sys.stdout.write(line)
apply.sh:
for name in "$@"
do
python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
After that, check-all (with llvm, clang, clang-tools-extra, lld,
compiler-rt, and polly all checked out).
The extra 'rm' in the apply.sh script is due to a few files in clang's test
suite using interesting unicode stuff that my python script was throwing
exceptions on. None of those files needed to be migrated, so it seemed
sufficient to ignore those cases.
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7636
llvm-svn: 230786
2015-02-28 03:29:02 +08:00
%agg.tmp.sroa.3.0..sroa_idx = getelementptr inbounds %struct.A , %struct.A * %agg.tmp.i.i , i64 0 , i32 2 , !dbg !91
2015-02-11 07:32:56 +08:00
store i8 1 , i8 * %agg.tmp.sroa.3.0..sroa_idx , align 8 , !dbg !91
[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction
One of several parallel first steps to remove the target type of pointers,
replacing them with a single opaque pointer type.
This adds an explicit type parameter to the gep instruction so that when the
first parameter becomes an opaque pointer type, the type to gep through is
still available to the instructions.
* This doesn't modify gep operators, only instructions (operators will be
handled separately)
* Textual IR changes only. Bitcode (including upgrade) and changing the
in-memory representation will be in separate changes.
* geps of vectors are transformed as:
getelementptr <4 x float*> %x, ...
->getelementptr float, <4 x float*> %x, ...
Then, once the opaque pointer type is introduced, this will ultimately look
like:
getelementptr float, <4 x ptr> %x
with the unambiguous interpretation that it is a vector of pointers to float.
* address spaces remain on the pointer, not the type:
getelementptr float addrspace(1)* %x
->getelementptr float, float addrspace(1)* %x
Then, eventually:
getelementptr float, ptr addrspace(1) %x
Importantly, the massive amount of test case churn has been automated by
same crappy python code. I had to manually update a few test cases that
wouldn't fit the script's model (r228970,r229196,r229197,r229198). The
python script just massages stdin and writes the result to stdout, I
then wrapped that in a shell script to handle replacing files, then
using the usual find+xargs to migrate all the files.
update.py:
import fileinput
import sys
import re
ibrep = re.compile(r"(^.*?[^%\w]getelementptr inbounds )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
normrep = re.compile( r"(^.*?[^%\w]getelementptr )(((?:<\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|>)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))")
def conv(match, line):
if not match:
return line
line = match.groups()[0]
if len(match.groups()[5]) == 0:
line += match.groups()[2]
line += match.groups()[3]
line += ", "
line += match.groups()[1]
line += "\n"
return line
for line in sys.stdin:
if line.find("getelementptr ") == line.find("getelementptr inbounds"):
if line.find("getelementptr inbounds") != line.find("getelementptr inbounds ("):
line = conv(re.match(ibrep, line), line)
elif line.find("getelementptr ") != line.find("getelementptr ("):
line = conv(re.match(normrep, line), line)
sys.stdout.write(line)
apply.sh:
for name in "$@"
do
python3 `dirname "$0"`/update.py < "$name" > "$name.tmp" && mv "$name.tmp" "$name"
rm -f "$name.tmp"
done
The actual commands:
From llvm/src:
find test/ -name *.ll | xargs ./apply.sh
From llvm/src/tools/clang:
find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I '{}' ../../apply.sh "{}"
From llvm/src/tools/polly:
find test/ -name *.ll | xargs ./apply.sh
After that, check-all (with llvm, clang, clang-tools-extra, lld,
compiler-rt, and polly all checked out).
The extra 'rm' in the apply.sh script is due to a few files in clang's test
suite using interesting unicode stuff that my python script was throwing
exceptions on. None of those files needed to be migrated, so it seemed
sufficient to ignore those cases.
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7636
llvm-svn: 230786
2015-02-28 03:29:02 +08:00
%agg.tmp.sroa.4.0..sroa_raw_idx = getelementptr inbounds i8 , i8 * %1 , i64 17 , !dbg !91
2015-11-19 13:56:52 +08:00
call void @llvm.memcpy.p0i8.p0i8.i64 ( i8 * %agg.tmp.sroa.4.0..sroa_raw_idx , i8 * %agg.tmp.sroa.4.17..sroa_idx , i64 7 , i32 1 , i1 false ) , !dbg !91
2015-02-11 07:32:56 +08:00
invoke void @_Z2f91A ( %struct.A * %agg.tmp.i.i )
to label %invoke.cont unwind label %lpad , !dbg !92
invoke.cont: ; preds = %call.i.i.noexc
call void @llvm.lifetime.end ( i64 24 , i8 * %1 ) , !dbg !93
call void @llvm.dbg.value ( metadata %struct.B * %d , i64 0 , metadata !39 , metadata !79 ) , !dbg !82
%call1 = call %struct.B * @_ZN1BD1Ev ( %struct.B * %d ) #3 , !dbg !94
ret void , !dbg !94
lpad: ; preds = %call.i.i.noexc, %entry
2015-06-18 04:52:32 +08:00
%3 = landingpad { i8 * , i32 }
2015-02-11 07:32:56 +08:00
cleanup , !dbg !94
call void @llvm.dbg.value ( metadata %struct.B * %d , i64 0 , metadata !39 , metadata !79 ) , !dbg !82
%call2 = call %struct.B * @_ZN1BD1Ev ( %struct.B * %d ) #3 , !dbg !94
resume { i8 * , i32 } %3 , !dbg !94
}
declare %struct.B * @_ZN1BC1El ( %struct.B * , i64 )
declare i32 @__gxx_personality_v0 ( . . . )
; Function Attrs: nounwind
declare %struct.B * @_ZN1BD1Ev ( %struct.B * ) #4
; Function Attrs: nounwind readnone
declare void @llvm.dbg.value ( metadata , i64 , metadata , metadata ) #1
; Function Attrs: nounwind
declare void @llvm.lifetime.start ( i64 , i8 * nocapture ) #3
; Function Attrs: nounwind
declare void @llvm.lifetime.end ( i64 , i8 * nocapture ) #3
attributes #1 = { nounwind readnone }
attributes #2 = { nobuiltin }
attributes #3 = { nounwind }
attributes #4 = { nounwind }
attributes #5 = { builtin }
!llvm.dbg.cu = ! { !0 }
!llvm.module.flags = ! { !43 , !44 }
!llvm.ident = ! { !45 }
2016-04-15 23:57:41 +08:00
!0 = distinct !DICompileUnit ( language: D W _ L A N G _ C _ p l u s _ p l u s , producer: "clang version 3.7.0 " , isOptimized: true , emissionKind: F u l l D e b u g , file: !1 , enums: !2 , retainedTypes: !3 , globals: !40 , imports: !2 )
2015-04-30 00:38:44 +08:00
!1 = !DIFile ( filename: "<stdin>" , directory: "" )
2015-02-11 07:32:56 +08:00
!2 = ! { }
!3 = ! { !4 , !12 , !14 }
2015-04-30 00:38:44 +08:00
!4 = !DICompositeType ( tag: D W _ T A G _ s t r u c t u r e _ type , name: "A" , line: 2 , size: 192 , align: 64 , file: !5 , elements: !6 , identifier: "_ZTS1A" )
!5 = !DIFile ( filename: "test.cpp" , directory: "" )
2015-02-11 07:32:56 +08:00
!6 = ! { !7 , !9 , !11 }
2016-04-24 05:08:00 +08:00
!7 = !DIDerivedType ( tag: D W _ T A G _ m e m b e r , name: "x4" , line: 3 , size: 8 , align: 8 , file: !5 , scope: !4 , baseType: !8 )
2015-04-30 00:38:44 +08:00
!8 = !DIBasicType ( tag: D W _ T A G _ b a s e _ type , name: "bool" , size: 8 , align: 8 , encoding: D W _ A T E _ b o o l e a n )
2016-04-24 05:08:00 +08:00
!9 = !DIDerivedType ( tag: D W _ T A G _ m e m b e r , name: "x5" , line: 4 , size: 64 , align: 64 , offset: 64 , file: !5 , scope: !4 , baseType: !10 )
2015-04-30 00:38:44 +08:00
!10 = !DIDerivedType ( tag: D W _ T A G _ p o i n t e r _ type , size: 64 , align: 64 , baseType: null )
2016-04-24 05:08:00 +08:00
!11 = !DIDerivedType ( tag: D W _ T A G _ m e m b e r , name: "x6" , line: 5 , size: 8 , align: 8 , offset: 128 , file: !5 , scope: !4 , baseType: !8 )
2015-04-30 00:38:44 +08:00
!12 = !DIDerivedType ( tag: D W _ T A G _ p o i n t e r _ type , size: 64 , align: 64 , baseType: !13 )
!13 = !DIBasicType ( tag: D W _ T A G _ b a s e _ type , name: "int" , size: 32 , align: 32 , encoding: D W _ A T E _ s i g n e d )
!14 = !DICompositeType ( tag: D W _ T A G _ s t r u c t u r e _ type , name: "B" , line: 8 , size: 8 , align: 8 , file: !5 , elements: !15 , identifier: "_ZTS1B" )
2015-02-11 07:32:56 +08:00
!15 = ! { !16 , !21 }
2016-04-24 05:08:00 +08:00
!16 = !DISubprogram ( name: "B" , line: 9 , isLocal: false , isDefinition: false , flags: D I F l a g P r o t o t y p e d , isOptimized: true , scopeLine: 9 , file: !5 , scope: !14 , type: !17 )
2015-04-30 00:38:44 +08:00
!17 = !DISubroutineType ( types: !18 )
2015-02-11 07:32:56 +08:00
!18 = ! { null , !19 , !20 }
2016-04-24 05:08:00 +08:00
!19 = !DIDerivedType ( tag: D W _ T A G _ p o i n t e r _ type , size: 64 , align: 64 , flags: D I F l a g A r t i f i c i a l | D I F l a g O b j e c t P o i n t e r , baseType: !14 )
2015-04-30 00:38:44 +08:00
!20 = !DIBasicType ( tag: D W _ T A G _ b a s e _ type , name: "long int" , size: 64 , align: 64 , encoding: D W _ A T E _ s i g n e d )
2016-04-24 05:08:00 +08:00
!21 = !DISubprogram ( name: "~B" , line: 10 , isLocal: false , isDefinition: false , flags: D I F l a g P r o t o t y p e d , isOptimized: true , scopeLine: 10 , file: !5 , scope: !14 , type: !22 )
2015-04-30 00:38:44 +08:00
!22 = !DISubroutineType ( types: !23 )
2015-02-11 07:32:56 +08:00
!23 = ! { null , !19 }
2016-04-15 23:57:41 +08:00
!25 = distinct !DISubprogram ( name: "f13" , linkageName: "_Z3f131A" , line: 13 , isLocal: false , isDefinition: true , flags: D I F l a g P r o t o t y p e d , isOptimized: true , unit: !0 , scopeLine: 13 , file: !5 , scope: !26 , type: !27 , variables: !29 )
2015-04-30 00:38:44 +08:00
!26 = !DIFile ( filename: "test.cpp" , directory: "" )
!27 = !DISubroutineType ( types: !28 )
2016-04-24 05:08:00 +08:00
!28 = ! { null , !4 }
2015-02-11 07:32:56 +08:00
!29 = ! { !30 }
2016-04-24 05:08:00 +08:00
!30 = !DILocalVariable ( name: "p1" , line: 13 , arg: 1 , scope: !25 , file: !26 , type: !4 )
2016-04-15 23:57:41 +08:00
!31 = distinct !DISubprogram ( name: "f11" , linkageName: "_Z3f111A" , line: 17 , isLocal: false , isDefinition: true , flags: D I F l a g P r o t o t y p e d , isOptimized: true , unit: !0 , scopeLine: 17 , file: !5 , scope: !26 , type: !27 , variables: !32 )
2015-02-11 07:32:56 +08:00
!32 = ! { !33 }
2016-04-24 05:08:00 +08:00
!33 = !DILocalVariable ( name: "p1" , line: 17 , arg: 1 , scope: !31 , file: !26 , type: !4 )
2016-04-15 23:57:41 +08:00
!34 = distinct !DISubprogram ( name: "f16" , linkageName: "_Z3f16v" , line: 18 , isLocal: false , isDefinition: true , flags: D I F l a g P r o t o t y p e d , isOptimized: true , unit: !0 , scopeLine: 18 , file: !5 , scope: !26 , type: !35 , variables: !37 )
2015-04-30 00:38:44 +08:00
!35 = !DISubroutineType ( types: !36 )
2015-02-11 07:32:56 +08:00
!36 = ! { null }
!37 = ! { !38 , !39 }
2016-04-24 05:08:00 +08:00
!38 = !DILocalVariable ( name: "c" , line: 19 , scope: !34 , file: !26 , type: !4 )
!39 = !DILocalVariable ( name: "d" , line: 20 , scope: !34 , file: !26 , type: !14 )
2015-02-11 07:32:56 +08:00
!40 = ! { !41 , !42 }
2016-12-17 03:39:01 +08:00
!41 = !DIGlobalVariable ( name: "a" , line: 1 , isLocal: false , isDefinition: true , scope: null , file: !26 , type: !20 )
!42 = !DIGlobalVariable ( name: "b" , line: 7 , isLocal: false , isDefinition: true , scope: null , file: !26 , type: !12 )
2015-02-11 07:32:56 +08:00
!43 = ! { i32 2 , !"Dwarf Version" , i32 2 }
2015-03-04 01:24:31 +08:00
!44 = ! { i32 2 , !"Debug Info Version" , i32 3 }
2015-02-11 07:32:56 +08:00
!45 = ! { !"clang version 3.7.0 " }
2015-04-30 00:38:44 +08:00
!46 = !DIExpression ( D W _ O P _ d e r e f )
!47 = !DILocation ( line: 13 , column: 12 , scope: !25 )
!48 = !DILocation ( line: 14 , column: 37 , scope: !25 )
2015-02-11 07:32:56 +08:00
!49 = ! { !50 , !50 , i64 0 }
!50 = ! { !"long" , !51 , i64 0 }
!51 = ! { !"omnipotent char" , !52 , i64 0 }
!52 = ! { !"Simple C/C++ TBAA" }
2015-04-30 00:38:44 +08:00
!53 = !DILocation ( line: 14 , column: 14 , scope: !25 )
!54 = !DILocation ( line: 14 , column: 5 , scope: !25 )
2015-02-11 07:32:56 +08:00
!55 = ! { !56 , !56 , i64 0 }
!56 = ! { !"any pointer" , !51 , i64 0 }
2015-04-30 00:38:44 +08:00
!57 = !DILocation ( line: 15 , column: 6 , scope: !25 )
2015-02-11 07:32:56 +08:00
!58 = ! { i64 0 , i64 1 , !59 , i64 8 , i64 8 , !55 , i64 16 , i64 1 , !59 }
!59 = ! { !60 , !60 , i64 0 }
!60 = ! { !"bool" , !51 , i64 0 }
2015-04-30 00:38:44 +08:00
!61 = !DILocation ( line: 15 , column: 3 , scope: !25 )
!62 = !DILocation ( line: 16 , column: 1 , scope: !25 )
!63 = !DILocation ( line: 17 , column: 12 , scope: !31 )
!64 = !DILocation ( line: 17 , column: 22 , scope: !31 )
!65 = !DILocation ( line: 13 , column: 12 , scope: !25 , inlinedAt: !66 )
!66 = distinct !DILocation ( line: 17 , column: 18 , scope: !31 )
!67 = !DILocation ( line: 14 , column: 37 , scope: !25 , inlinedAt: !66 )
!68 = !DILocation ( line: 14 , column: 14 , scope: !25 , inlinedAt: !66 )
!69 = !DILocation ( line: 14 , column: 5 , scope: !25 , inlinedAt: !66 )
!70 = !DILocation ( line: 15 , column: 6 , scope: !25 , inlinedAt: !66 )
!71 = !DILocation ( line: 15 , column: 3 , scope: !25 , inlinedAt: !66 )
!72 = !DILocation ( line: 16 , column: 1 , scope: !25 , inlinedAt: !66 )
!73 = !DILocation ( line: 17 , column: 27 , scope: !31 )
2016-04-24 05:08:00 +08:00
!74 = !DILocalVariable ( name: "p1" , line: 17 , arg: 1 , scope: !31 , file: !26 , type: !4 )
2015-04-30 00:38:44 +08:00
!75 = distinct !DILocation ( line: 22 , column: 3 , scope: !34 )
2016-12-06 02:04:47 +08:00
!76 = !DIExpression ( D W _ O P _ L L V M _ f r a g m e n t , 8 , 120 )
2015-04-30 00:38:44 +08:00
!77 = !DILocation ( line: 17 , column: 12 , scope: !31 , inlinedAt: !75 )
2016-12-06 02:04:47 +08:00
!78 = !DIExpression ( D W _ O P _ L L V M _ f r a g m e n t , 136 , 56 )
2016-01-15 08:46:17 +08:00
!79 = !DIExpression ( D W _ O P _ d e r e f )
2015-04-30 00:38:44 +08:00
!80 = !DILocation ( line: 19 , column: 5 , scope: !34 )
!81 = !DILocation ( line: 20 , column: 7 , scope: !34 )
!82 = !DILocation ( line: 20 , column: 5 , scope: !34 )
2016-12-06 02:04:47 +08:00
!83 = !DIExpression ( D W _ O P _ L L V M _ f r a g m e n t , 0 , 8 )
!84 = !DIExpression ( D W _ O P _ L L V M _ f r a g m e n t , 128 , 8 )
2015-04-30 00:38:44 +08:00
!85 = !DILocation ( line: 13 , column: 12 , scope: !25 , inlinedAt: !86 )
!86 = distinct !DILocation ( line: 17 , column: 18 , scope: !31 , inlinedAt: !75 )
!87 = !DILocation ( line: 14 , column: 37 , scope: !25 , inlinedAt: !86 )
!88 = !DILocation ( line: 14 , column: 14 , scope: !25 , inlinedAt: !86 )
!89 = !DILocation ( line: 22 , column: 7 , scope: !34 )
!90 = !DILocation ( line: 14 , column: 5 , scope: !25 , inlinedAt: !86 )
!91 = !DILocation ( line: 15 , column: 6 , scope: !25 , inlinedAt: !86 )
!92 = !DILocation ( line: 15 , column: 3 , scope: !25 , inlinedAt: !86 )
!93 = !DILocation ( line: 16 , column: 1 , scope: !25 , inlinedAt: !86 )
!94 = !DILocation ( line: 23 , column: 1 , scope: !34 )