14#ifndef LLVM_CODEGEN_MACHORELOCATION_H
15#define LLVM_CODEGEN_MACHORELOCATION_H
37 return (1 << 31) | (r_pcrel << 30) | ((r_length & 3) << 28) |
38 ((r_type & 15) << 24) | (r_address & 0x00FFFFFF);
40 return (r_symbolnum << 8) | (r_pcrel << 7) | ((r_length & 3) << 5) |
41 (r_extern << 4) | (r_type & 15);
47 bool ext,
uint8_t type,
bool scattered =
false,
49 r_address(addr), r_symbolnum(index), r_pcrel(pcrel), r_length(len),
50 r_extern(ext), r_type(type), r_scattered(scattered), r_value(
value) {}
Given that RA is a live value
MachORelocation - This struct contains information about each relocation that needs to be emitted to ...
uint32_t getPackedFields() const
uint32_t getAddress() const
uint32_t getRawAddress() const
MachORelocation(uint32_t addr, uint32_t index, bool pcrel, uint8_t len, bool ext, uint8_t type, bool scattered=false, int32_t value=0)
This is an optimization pass for GlobalISel generic memory operations.