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

Method symbol_alignment

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

Returns the minimum symbol alignment for this ISA.

(&self)

Source from the content-addressed store, hash-verified

452
453 /// Returns the minimum symbol alignment for this ISA.
454 pub fn symbol_alignment(&self) -> u64 {
455 match self.triple().architecture {
456 // All symbols need to be aligned to at least 2 on s390x.
457 Architecture::S390x => 2,
458 _ => 1,
459 }
460 }
461
462 /// Get the pointer type of this ISA.
463 pub fn pointer_type(&self) -> ir::Type {

Callers 4

define_function_bytesMethod · 0.80
define_dataMethod · 0.80
define_function_innerMethod · 0.80

Calls 1

tripleMethod · 0.45

Tested by

no test coverage detected