(&self, t: &'ll Type, u: u128)
| 36 | } |
| 37 | |
| 38 | fn const_uint_big(&self, t: &'ll Type, u: u128) -> &'ll Value { |
| 39 | unsafe { |
| 40 | let words = [u as u64, (u >> 64) as u64]; |
| 41 | llvm::LLVMConstIntOfArbitraryPrecision(t, 2, words.as_ptr()) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | fn const_bool(&self, val: bool) -> &'ll Value { |
| 46 | self.const_uint(self.type_i1(), val as u64) |
no test coverage detected