Displaying 13 results from an estimated 13 matches for "machinecpv".
Did you mean:
machinecse
2012 May 08
0
[LLVMdev] Address space information dropped
...he address space
> information is getting lost and it will correctly propagate it. It also
> avoids existent back-ends to break because of an unimplemented hook in
> MCAsmInfo.
@@ -1046,7 +1046,8 @@
if (CPE.isMachineConstantPoolEntry())
EmitMachineConstantPoolValue(CPE.Val.MachineCPVal);
else
- EmitGlobalConstant(CPE.Val.ConstVal);
+ EmitGlobalConstant(CPE.Val.ConstVal, (isa<PointerType>(Ty)) ?
+ cast<PointerType>(Ty)->getAddressSpace() : 0);
}
}
}
This looks suspicious; how can an entry in the constant pool possibly
acqu...
2012 May 08
4
[LLVMdev] Address space information dropped
Hi Eli,
On 07/05/2012 18:15, Eli Friedman wrote:
> On Mon, May 7, 2012 at 5:15 AM, Ivan Llopard<ivanllopard at gmail.com> wrote:
>> Hi all,
>>
>> Tuning my TargetAsmPrinter implementation in the back-end side, I
>> discovered that the address space number is not passed down while
>> emitting global variables with constant initializers. The information is
2008 Mar 30
3
[LLVMdev] Being able to know the jitted code-size before emitting
Hi everyone,
vmkit requires to know the size of a jitted method before emitting the
method. This allows to allocate the correct size for the method. The
attached patch creates this functionality when the flag SizedMemoryCode
is on.
In order to implement this functionality, i had to virtualize some
MachineCodeEmitter functions.
Is it OK to commit the patch?
Thanks,
Nicolas
--------------
2008 Apr 01
2
[LLVMdev] Being able to know the jitted code-size before emitting
...>
>>> getConstants();
>>>
>> + if (Constants.empty()) return;
>> +
>> + MachineConstantPoolEntry CPE = Constants.back();
>> + unsigned Size = CPE.Offset;
>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal->getType();
>> + Size += Fn->getTarget().getTargetData()->getABITypeSize(Ty);
>> + ConstantPoolBase = allocateSpace(Size, 1 << MCP-
>>
>>> getConstantPoolAlignment());
>>>
>> + ConstantPool =...
2008 Mar 31
0
[LLVMdev] Being able to know the jitted code-size before emitting
...or<MachineConstantPoolEntry> &Constants = MCP-
> >getConstants();
> + if (Constants.empty()) return;
> +
> + MachineConstantPoolEntry CPE = Constants.back();
> + unsigned Size = CPE.Offset;
> + const Type *Ty = CPE.isMachineConstantPoolEntry()
> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal->getType();
> + Size += Fn->getTarget().getTargetData()->getABITypeSize(Ty);
> + ConstantPoolBase = allocateSpace(Size, 1 << MCP-
> >getConstantPoolAlignment());
> + ConstantPool = MCP;
> +}
> +
> +void SizeEmitter::initJ...
2008 Apr 01
0
[LLVMdev] Being able to know the jitted code-size before emitting
...; getConstants();
>>>>
>>> + if (Constants.empty()) return;
>>> +
>>> + MachineConstantPoolEntry CPE = Constants.back();
>>> + unsigned Size = CPE.Offset;
>>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal-
>>> >getType();
>>> + Size += Fn->getTarget().getTargetData()->getABITypeSize(Ty);
>>> + ConstantPoolBase = allocateSpace(Size, 1 << MCP-
>>>
>>>> getConstantPoolAlignment());
>>>>
>...
2012 May 09
1
[LLVMdev] Address space information dropped
...formation is getting lost and it will correctly propagate it. It also
>> avoids existent back-ends to break because of an unimplemented hook in
>> MCAsmInfo.
> @@ -1046,7 +1046,8 @@
> if (CPE.isMachineConstantPoolEntry())
> EmitMachineConstantPoolValue(CPE.Val.MachineCPVal);
> else
> - EmitGlobalConstant(CPE.Val.ConstVal);
> + EmitGlobalConstant(CPE.Val.ConstVal, (isa<PointerType>(Ty)) ?
> + cast<PointerType>(Ty)->getAddressSpace() : 0);
> }
> }
> }
>
> This looks suspicious; how...
2008 Apr 04
3
[LLVMdev] Being able to know the jitted code-size before emitting
...>>>> + if (Constants.empty()) return;
>>>> +
>>>> + MachineConstantPoolEntry CPE = Constants.back();
>>>> + unsigned Size = CPE.Offset;
>>>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>>>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal-
>>>>
>>>>> getType();
>>>>>
>>>> + Size += Fn->getTarget().getTargetData()->getABITypeSize(Ty);
>>>> + ConstantPoolBase = allocateSpace(Size, 1 << MCP-
>>&g...
2008 Apr 05
2
[LLVMdev] Being able to know the jitted code-size before emitting
...ants.empty()) return;
>>>>>> +
>>>>>> + MachineConstantPoolEntry CPE = Constants.back();
>>>>>> + unsigned Size = CPE.Offset;
>>>>>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>>>>>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal-
>>>>>>
>>>>>>
>>>>>>> getType();
>>>>>>>
>>>>>>>
>>>>>> + Size += Fn->getTarget().getTargetData()->getABITypeSi...
2008 Apr 05
0
[LLVMdev] Being able to know the jitted code-size before emitting
...;
>>>>>>> +
>>>>>>> + MachineConstantPoolEntry CPE = Constants.back();
>>>>>>> + unsigned Size = CPE.Offset;
>>>>>>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>>>>>>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal-
>>>>>>>
>>>>>>>
>>>>>>>> getType();
>>>>>>>>
>>>>>>>>
>>>>>>> + Size += Fn->getTarget().getTargetData()->getABITypeSize(T...
2008 Apr 04
0
[LLVMdev] Being able to know the jitted code-size before emitting
...gt;> + if (Constants.empty()) return;
>>>>> +
>>>>> + MachineConstantPoolEntry CPE = Constants.back();
>>>>> + unsigned Size = CPE.Offset;
>>>>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>>>>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal-
>>>>>
>>>>>> getType();
>>>>>>
>>>>> + Size += Fn->getTarget().getTargetData()->getABITypeSize(Ty);
>>>>> + ConstantPoolBase = allocateSpace(Size, 1 << MCP-
>>>...
2008 Apr 07
2
[LLVMdev] Being able to know the jitted code-size before emitting
...t;>>> +
>>>>>>>> + MachineConstantPoolEntry CPE = Constants.back();
>>>>>>>> + unsigned Size = CPE.Offset;
>>>>>>>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>>>>>>>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal-
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> getType();
>>>>>>>>>
>>>>>>>>>
>>>>>>&...
2008 Apr 07
0
[LLVMdev] Being able to know the jitted code-size before emitting
...>>>>>>>>> + MachineConstantPoolEntry CPE = Constants.back();
>>>>>>>>> + unsigned Size = CPE.Offset;
>>>>>>>>> + const Type *Ty = CPE.isMachineConstantPoolEntry()
>>>>>>>>> + ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal-
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> getType();
>>>>>>>>>>
>>>>>>>>>>
>>>>&g...