| 69 | namespace IR { |
| 70 | |
| 71 | Pointer::Pointer(const Memory &m, const expr &bid, const expr &offset, |
| 72 | const expr &attr) : m(const_cast<Memory&>(m)), |
| 73 | p(prepend_if(expr::mkUInt(0, 1 + padding_logical()), |
| 74 | bid.concat(offset), hasLogicalBit())) { |
| 75 | if (bits_for_ptrattrs) |
| 76 | p = p.concat(attr); |
| 77 | assert(!bid.isValid() || !offset.isValid() || p.bits() == totalBits()); |
| 78 | } |
| 79 | |
| 80 | Pointer::Pointer(const Memory &m, const char *var_name, |
| 81 | const ParamAttrs &attr) : m(const_cast<Memory&>(m)) { |
nothing calls this directly
no test coverage detected