| 3935 | DEFINE_AS_EMPTYACCESS(GEP) |
| 3936 | |
| 3937 | static unsigned off_used_bits(const Value &v) { |
| 3938 | if (auto c = isCast(ConversionOp::SExt, v)) |
| 3939 | return off_used_bits(c->getValue()); |
| 3940 | |
| 3941 | if (auto ty = dynamic_cast<IntType*>(&v.getType())) |
| 3942 | return min(ty->bits(), 64u); |
| 3943 | |
| 3944 | return 64; |
| 3945 | } |
| 3946 | |
| 3947 | uint64_t GEP::getMaxGEPOffset() const { |
| 3948 | uint64_t off = 0; |
no test coverage detected