MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / pointer_type

Method pointer_type

cranelift/codegen/src/isa/mod.rs:266–268  ·  view source on GitHub ↗

Get the pointer type of this target.

(self)

Source from the content-addressed store, hash-verified

264impl TargetFrontendConfig {
265 /// Get the pointer type of this target.
266 pub fn pointer_type(self) -> ir::Type {
267 ir::Type::int(self.pointer_bits() as u16).unwrap()
268 }
269
270 /// Get the width of pointers on this target, in units of bits.
271 pub fn pointer_bits(self) -> u8 {

Callers 15

run_testFunction · 0.45
make_trampolineFunction · 0.45
call_memcpyMethod · 0.45
call_memsetMethod · 0.45
emit_small_memsetMethod · 0.45
call_memmoveMethod · 0.45
call_memcmpMethod · 0.45
memcpyFunction · 0.45
small_memcpyFunction · 0.45
not_so_small_memcpyFunction · 0.45

Calls 2

pointer_bitsMethod · 0.80
unwrapMethod · 0.45

Tested by 10

run_testFunction · 0.36
memcpyFunction · 0.36
small_memcpyFunction · 0.36
not_so_small_memcpyFunction · 0.36
small_memsetFunction · 0.36
not_so_small_memsetFunction · 0.36
memcmpFunction · 0.36
libcall_functionFunction · 0.36
libcall_functionFunction · 0.36