Skip to content

Instantly share code, notes, and snippets.

@chandlerc
Created August 4, 2012 23:22
Show Gist options
  • Save chandlerc/3260555 to your computer and use it in GitHub Desktop.
Save chandlerc/3260555 to your computer and use it in GitHub Desktop.
Partitioning of alloca: %a = alloca [2000 x i8]
partition #0 [0,42) (splittable)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %b, i32 2000, i32 1, i1 false)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %b, i8* %src, i32 2000, i32 1, i1 false)
partition #1 [42,43)
used by: store i8 0, i8* %c
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %b, i32 2000, i32 1, i1 false)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %b, i8* %src, i32 2000, i32 1, i1 false)
partition #2 [43,142) (splittable)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %b, i32 2000, i32 1, i1 false)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %b, i8* %src, i32 2000, i32 1, i1 false)
partition #3 [142,158) (splittable)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %b, i32 2000, i32 1, i1 false)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %b, i8* %src, i32 2000, i32 1, i1 false)
partition #4 [142,150)
used by: store i64 1, i64* %overlap.1.i64
partition #5 [142,146)
used by: store i32 1, i32* %overlap.1.i32
partition #6 [142,144)
used by: store i16 1, i16* %overlap.1.i16
partition #7 [142,143)
used by: store i8 1, i8* %overlap.1.i8
partition #8 [143,151)
used by: store i64 2, i64* %overlap.2.i64
partition #9 [144,152)
used by: store i64 3, i64* %overlap.3.i64
partition #10 [145,153)
used by: store i64 4, i64* %overlap.4.i64
partition #11 [146,154)
used by: store i64 5, i64* %overlap.5.i64
partition #12 [147,155)
used by: store i64 6, i64* %overlap.6.i64
partition #13 [148,156)
used by: store i64 7, i64* %overlap.7.i64
partition #14 [149,157)
used by: store i64 8, i64* %overlap.8.i64
partition #15 [150,158)
used by: store i64 9, i64* %overlap.9.i64
partition #16 [158,2000) (splittable)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %b, i32 2000, i32 1, i1 false)
used by: call void @llvm.memcpy.p0i8.p0i8.i32(i8* %b, i8* %src, i32 2000, i32 1, i1 false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment