Displaying 4 results from an estimated 4 matches for "eightbyteconstantsect".
2014 Aug 25
2
[LLVMdev] How to tell whether a GlobalValue is user-defined
...etLoweringObjectFileMachO::getSectionForConstant(SectionKind Kind,
> if (Kind.isDataRel() || Kind.isReadOnlyWithRel())
> return ConstDataSection;
>
> - if (Kind.isMergeableConst4())
> - return FourByteConstantSection;
> - if (Kind.isMergeableConst8())
> - return EightByteConstantSection;
> - if (Kind.isMergeableConst16())
> - return SixteenByteConstantSection;
> return ReadOnlySection; // .const
> }
>
>
>>
>> -Nick
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVM...
2014 Aug 28
4
[LLVMdev] How to tell whether a GlobalValue is user-defined
...argetLoweringObjectFileMachO::SelectSectionForGlobal()
I mean "the correspoinding symbol name will start with".
> if (Kind.isMergeableConst()) {
> if (Kind.isMergeableConst4())
> return FourByteConstantSection;
> if (Kind.isMergeableConst8())
> return EightByteConstantSection;
> if (Kind.isMergeableConst16())
> return SixteenByteConstantSection;
> }
>
> Can’t we just change the first ‘if’ to:
>
> if (Kind.isMergeableConst() && !GV.hasName()) {
>
> That should leave any “named” constants in the __const section instead of...
2014 Aug 27
2
[LLVMdev] How to tell whether a GlobalValue is user-defined
>> The literalN sections were developed long ago to support coalescing of
>> unnamed constants like 9.897 in source code for architectures that could not
>> embed large constants in instructions. The linker could knew how to break
>> up the section (e.g. __literal8 is always 8 byte chunks) and coalesce copies
>> by content.
>>
>> ~6 years ago we
2014 Aug 25
4
[LLVMdev] How to tell whether a GlobalValue is user-defined
On Aug 25, 2014, at 8:26 AM, Rafael Espíndola <rafael.espindola at gmail.com> wrote:
> On 21 August 2014 19:32, Akira Hatanaka <ahatanak at gmail.com> wrote:
>> Is there a way to distinguish between GlobalValues that are user-defined and
>> those that are compiler-defined? I am looking for a function that I can use
>> to tell if a GlobalValue is user-defined ,