Displaying 5 results from an estimated 5 matches for "selectsectionforglobal".
2014 Aug 28
4
[LLVMdev] How to tell whether a GlobalValue is user-defined
...gt;
>> LLVM should only put constants in mergeable sections only if (among
>> other things) they require only symbols that start with 'l' or 'L'.
> Not sure what you mean here. What is "requiring”? Are we talking about this code in TargetLoweringObjectFileMachO::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.isMergea...
2016 Oct 14
2
creating an .init section
Hi,
I would like to create an .init section in the LLVM backend. Can anyone shed me the light on how to do it? Do I have to create it in the clang?
Thanks,
Jin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161014/4f262397/attachment.html>
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
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...etData::getTypeStoreSize(llvm::Type const*) constin
libLLVMAnalysis.a(Loads.cpp.o)
llvm::TargetData::getTypeStoreSize(llvm::Type const*) constin
libLLVMSelectionDAG.a(InstrEmitter.cpp.o)
"llvm::TargetMachine::getDataSections()", referenced from:
llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(llvm::GlobalValue
const*, llvm::SectionKind, llvm::Mangler*, llvm::TargetMachine const&)
constin libLLVMCodeGen.a(TargetLoweringObjectFileImpl.cpp.o)
"llvm::UnwindTablesMandatory", referenced from:
__ZN4llvm21UnwindTablesMandatoryE$non_lazy_ptr in
libLLVMAsmPrinter.a(DwarfExce...
2014 Aug 25
2
[LLVMdev] How to tell whether a GlobalValue is user-defined
I think this is preventing constants in the constant pool (e.g., floating
point literal) from being placed in the mergeable constant sections?
We want to keep the const arrays declared in the program (s_dashArraySize1)
out of the mergeable constant sections, but don't mind placing constants
in the constant pool or constant arrays that the compiler defines, such
as switch.table and