Displaying 6 results from an estimated 6 matches for "getsectionforconst".
2014 Aug 25
2
[LLVMdev] How to tell whether a GlobalValue is user-defined
...deGen/TargetLoweringObjectFileImpl.cpp
> b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
> index 55e1756..bf78ce1 100644
> --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
> +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
> @@ -667,12 +667,6 @@
> TargetLoweringObjectFileMachO::getSectionForConstant(SectionKind Kind,
> if (Kind.isDataRel() || Kind.isReadOnlyWithRel())
> return ConstDataSection;
>
> - if (Kind.isMergeableConst4())
> - return FourByteConstantSection;
> - if (Kind.isMergeableConst8())
> - return EightByteConstantSection;
> - if (Kind.is...
2013 Jun 25
0
[LLVMdev] Contants generation - proposal
Hi Elena,
> (2) Proposal
> Define one more Code Model, let's say "LargeNearConst", which will allow to put constants in .text.
Isn't that a little heavy-handed? The large model only requires the
less efficient access for symbols we can't control, and in fact x86
still uses pc-relative conditional branches within a function so it
can't pretend to support a single
2013 Jun 26
2
[LLVMdev] Contants generation - proposal
...geJIT". (Is it sounds better then LargeNearConst?)
For X86 target JITDefault will be translated CodeModel::LargeJIT for x64 and CodeModel::Small for 32-bit.
And the TargetLoweringObjectFile already has CodeModel inside. So the code will look like :
const MCSection *
TargetLoweringObjectFile::getSectionForConstant(SectionKind Kind) const {
if (getCodeModel() == CodeModel::LargeJIT)
return TextSection;
if (Kind.isReadOnly() && ReadOnlySection != 0)
return ReadOnlySection;
return DataSection;
}
- Elena
-----Original Message-----
From: Tim Northover [mailto:t.p.northover at gmail.c...
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 ,
2013 Jun 25
2
[LLVMdev] Contants generation - proposal
...lena
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Contants generation
Hi again,
Actually, I've just been looking at the existing code and the ARM solution may be over-complicated for this situation.
You should be able to override EmitConstantPool directly, or possibly even just override getSectionForConstantKind in X86LinuxTargetObjectFile (and perhaps others) to return .text.
Tim.
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review...
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...t const*, unsigned int)",
referenced from:
llvm::EBCGenRegisterInfo::EBCGenRegisterInfo(int, int)in
libLLVMEBCCodeGen.a(EBCRegisterInfo.cpp.o)
llvm::EBCGenRegisterInfo::EBCGenRegisterInfo(int, int)in
libLLVMEBCCodeGen.a(EBCRegisterInfo.cpp.o)
"llvm::TargetLoweringObjectFile::getSectionForConstant(llvm::SectionKind)
const", referenced from:
vtable for llvm::TargetLoweringObjectFileCOFFin
libLLVMCodeGen.a(TargetLoweringObjectFileImpl.cpp.o)
"llvm::TargetInstrInfo::insertNoop(llvm::MachineBasicBlock&,
llvm::ilist_iterator<llvm::MachineInstr>) const", referen...