toaarnio / llvm-ir-memprotect

LLVM IR instrumentation for protection against out-of-bounds memory accesses
Mozilla Public License 2.0
9 stars 2 forks source link

Initialize min and max addresses of constant address space struct and local address space struct to limits stored in ProgramAllocations #13

Closed elhigu closed 11 years ago

elhigu commented 11 years ago

Or if those limits are always got directly from global scope, then just remove extra fields from LocalLimits and ConstantLimits structs. Latter solution would be slightly more efficient, since one does not have to get address space structure limits indirectly, but only add constant GEPs to bookkeepping in compile time.

elhigu commented 11 years ago

changed system to get min and max of address space struct directly from global variable