(&self, def: SpirvValue)
| 663 | } |
| 664 | |
| 665 | pub fn lookup_const(&self, def: SpirvValue) -> Option<SpirvConst<'tcx>> { |
| 666 | match def.kind { |
| 667 | SpirvValueKind::Def(id) | SpirvValueKind::IllegalConst(id) => { |
| 668 | self.lookup_const_by_id(id) |
| 669 | } |
| 670 | _ => None, |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | pub fn lookup_const_u64(&self, def: SpirvValue) -> Option<u64> { |
| 675 | match self.lookup_const(def)? { |
no test coverage detected