Displaying 5 results from an estimated 5 matches for "movpc32".
Did you mean:
movpc32r
2008 Apr 16
3
[LLVMdev] Being able to know the jitted code-size before emitting
...t;> +unsigned X86RegisterInfo::getX86RegNum(unsigned RegNo) {
>>
>
> What happened to "const"?
>
I made the function static.
>> + unsigned Size = GetInstSizeWithDesc(*MI, &Desc, IsPIC,
>> Is64BitMode);
>> + if (Desc.getOpcode() == X86::MOVPC32r) {
>> + Size += GetInstSizeWithDesc(*MI, &get(X86::POP32r), IsPIC,
>> Is64BitMode);
>> + }
>>
>
> I would prefer this special case is handled in GetInstSizeWithDesc().
>
>
I can not do that in GetInstSizeWithDesc because the test is on the...
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...gNum(unsigned RegNo) {
>>>
>>
>> What happened to "const"?
>>
>
> I made the function static.
Ok.
>
>
>>> + unsigned Size = GetInstSizeWithDesc(*MI, &Desc, IsPIC,
>>> Is64BitMode);
>>> + if (Desc.getOpcode() == X86::MOVPC32r) {
>>> + Size += GetInstSizeWithDesc(*MI, &get(X86::POP32r), IsPIC,
>>> Is64BitMode);
>>> + }
>>>
>>
>> I would prefer this special case is handled in GetInstSizeWithDesc().
>>
>>
>
> I can not do that in GetInstSizeWithDe...
2008 Apr 17
1
[LLVMdev] Being able to know the jitted code-size before emitting
...ot;const"?
>>>
>>>
>> I made the function static.
>>
>
> Ok.
>
>
>>
>>>> + unsigned Size = GetInstSizeWithDesc(*MI, &Desc, IsPIC,
>>>> Is64BitMode);
>>>> + if (Desc.getOpcode() == X86::MOVPC32r) {
>>>> + Size += GetInstSizeWithDesc(*MI, &get(X86::POP32r), IsPIC,
>>>> Is64BitMode);
>>>> + }
>>>>
>>>>
>>> I would prefer this special case is handled in GetInstSizeWithDesc().
>>>
>>>
>...
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...<< MI;
> @@ -584,7 +449,7 @@
>
> if (Is64BitMode) {
> // REX prefix
> - unsigned REX = determineREX(MI);
> + unsigned REX = X86InstrInfo::determineREX(MI);
> if (REX)
> MCE.emitByte(0x40 | REX);
> }
> @@ -632,7 +497,7 @@
> case X86::MOVPC32r: {
> // This emits the "call" portion of this pseudo instruction.
> MCE.emitByte(BaseOpcode);
> - emitConstant(0, sizeOfImm(Desc));
> + emitConstant(0, X86InstrInfo::sizeOfImm(Desc));
> // Remember PIC base.
> PICBaseOffset = MCE.getCur...
2008 Apr 15
4
[LLVMdev] Being able to know the jitted code-size before emitting
OK, here's a new patch that adds the infrastructure and the
implementation for X86, ARM and PPC of GetInstSize and GetFunctionSize.
Both functions are virtual functions defined in TargetInstrInfo.h.
For X86, I moved some commodity functions from X86CodeEmitter to
X86InstrInfo.
What do you think?
Nicolas
Evan Cheng wrote:
>
> I think both of these belong to TargetInstrInfo. And