[PATCH] D21242: [esan|cfrag] Handle complex GEP instr in the cfrag tool

Qin Zhao via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 13:53:50 PDT 2016


zhaoqin created this revision.
zhaoqin added a reviewer: aizatsky.
zhaoqin added subscribers: llvm-commits, bruening, eugenis, kcc, zhaoqin, vitalybuka.

Handles complext GEP instructions by iterating all (except the first and
the last) idx within the GEP instruction and instrumenting nested struct
field address calculation.

An example of complex gep instruction:
 getelementptr %struct.ST, %struct.ST* %s, i64 1,  i32 2, i32 1, i64 5, i64 13

Adds test struct_field_gep.ll for complex GEP instructions test.

http://reviews.llvm.org/D21242

Files:
  lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
  test/Instrumentation/EfficiencySanitizer/struct_field_gep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21242.60399.patch
Type: text/x-patch
Size: 5817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160610/bf09499d/attachment.bin>


More information about the llvm-commits mailing list