Displaying 3 results from an estimated 3 matches for "virt_reg1".
Did you mean:
virt_reg0
2018 Apr 02
0
Mapping virtual registers to physical registers
...appropriate basic blocks.
Also, you can only use physical registers in COPY instructions, either
as the source, or as the destination. You should not use non-reserved
physical registers directly in instructions. For example, you'd have
something like this:
%virt_reg0 = COPY $phys_reg
%virt_reg1 = some_instr %virt_reg0, ...
$phys_reg = COPY %virt_reg1
The functions "load/store from stack slot" are used for spills/restores.
They do exactly what their names suggest and they are not required to be
used (unless, of course, you want to generate a load/store).
In the code snippe...
2018 Apr 03
1
Mapping virtual registers to physical registers
...in appropriate basic blocks.
Also, you can only use physical registers in COPY instructions, either as the source, or as the destination. You should not use non-reserved physical registers directly in instructions. For example, you'd have something like this:
%virt_reg0 = COPY $phys_reg
%virt_reg1 = some_instr %virt_reg0, ...
$phys_reg = COPY %virt_reg1
The functions "load/store from stack slot" are used for spills/restores.
They do exactly what their names suggest and they are not required to be used (unless, of course, you want to generate a load/store).
In the code snippet...
2018 Mar 29
4
Mapping virtual registers to physical registers
Hi,
In the context of MachineCode custom inserter, I'm trying to enforce the mapping of virtual register to a physical one.
According to the documentation https://llvm.org/docs/CodeGenerator.html#mapping-virtual-registers-to-physical-registers
There are two ways: the direct one and the indirect ones. The indirect ones refer VirtRegMap class that I've never found. So I tried the direct