History log of /llvm-project-15.0.7/llvm/lib/Target/TargetLoweringObjectFile.cpp (Results 176 – 200 of 228)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# bd3c0337 17-Aug-2009 Benjamin Kramer <[email protected]>

Clear the uniquing table when initializing TLOF to avoid a crash when the TLOF is reinitialized with a different MCContext.

llvm-svn: 79253


# 94a2c1ac 17-Aug-2009 Richard Osborne <[email protected]>

Update getSectionForConstant() to to allow mergable sections to be nulled out
if not supported by the ELF subtarget.

llvm-svn: 79249


# 447b9b43 15-Aug-2009 Chris Lattner <[email protected]>

the .eh_frame sections we generate need to be writable (which
is why they are datarel). This should fix PR4724, and is fallout
from r78890.

llvm-svn: 79111


# ddb991c2 15-Aug-2009 Chris Lattner <[email protected]>

If ELF subtargets don't want to support 4/8/16-byte mergable sections, allow
them to null out the default section pointers.

llvm-svn: 79078


# 3e9dbe5a 14-Aug-2009 Dan Gohman <[email protected]>

Make these matching rules more strict so that they don't
accidentally match unrelated things.

llvm-svn: 78966


# 62e6a8bb 13-Aug-2009 Bruno Cardoso Lopes <[email protected]>

Remove HasCrazyBSS and add a flag in TAI to indicate that '.section'
must be emitted for PowerPC-Linux '.bss' section

llvm-svn: 78958


# 607cd3b6 13-Aug-2009 Bruno Cardoso Lopes <[email protected]>

Change MCSectionELF to represent a section semantically instead of
syntactically as a string, very similiar to what Chris did with MachO.
The parsing support and validation is not introduced yet.

ll

Change MCSectionELF to represent a section semantically instead of
syntactically as a string, very similiar to what Chris did with MachO.
The parsing support and validation is not introduced yet.

llvm-svn: 78890

show more ...


# 04b4700e 13-Aug-2009 Chris Lattner <[email protected]>

sink uniquing of sections out of MCContext into the ELF and PECOFF TLOF implementations.

MCContext no longer maintains a string -> section map.

llvm-svn: 78874


# b6913168 13-Aug-2009 Chris Lattner <[email protected]>

add some comments: MCContext owns the MCSections, but it bump pointer allocates
them, so it doesn't have to explicitly free them.

llvm-svn: 78870


# c0741ebb 13-Aug-2009 Chris Lattner <[email protected]>

reject invalid code like:
int x __attribute__((section("_foo, _bar"))) = 4;
int y __attribute__((section("_foo, _bar, 4byte_literals"))) = 1;

llvm-svn: 78867


# 2d5bdc2b 12-Aug-2009 Chris Lattner <[email protected]>

implement support for uniquing MachO sections.

llvm-svn: 78866


# c4c3c66f 12-Aug-2009 Chris Lattner <[email protected]>

reduce #includage

llvm-svn: 78860


# 7c50c9bd 11-Aug-2009 Dan Gohman <[email protected]>

Tidy #includes.

llvm-svn: 78677


# 6c20391d 10-Aug-2009 Chris Lattner <[email protected]>

split MachO section handling stuff out to its out .h/.cpp file.

llvm-svn: 78576


# cb307a27 10-Aug-2009 Chris Lattner <[email protected]>

Make the big switch: Change MCSectionMachO to represent a section *semantically*
instead of syntactically as a string. This means that it keeps track of the
segment, section, flags, etc directly an

Make the big switch: Change MCSectionMachO to represent a section *semantically*
instead of syntactically as a string. This means that it keeps track of the
segment, section, flags, etc directly and asmprints them in the right format.
This also includes parsing and validation support for llvm-mc and
"attribute(section)", so we should now start getting errors about invalid
section attributes from the compiler instead of the assembler on darwin.

Still todo:
1) Uniquing of darwin mcsections
2) Move all the Darwin stuff out to MCSectionMachO.[cpp|h]
3) there are a few FIXMEs, for example what is the syntax to get the
S_GB_ZEROFILL segment type?

llvm-svn: 78547

show more ...


# 1cb9396f 08-Aug-2009 Chris Lattner <[email protected]>

1. Make MCSection an abstract class.
2. Move section switch printing to MCSection virtual method which takes a
TAI. This eliminates textual formatting stuff from TLOF.
3. Eliminate SwitchToSectio

1. Make MCSection an abstract class.
2. Move section switch printing to MCSection virtual method which takes a
TAI. This eliminates textual formatting stuff from TLOF.
3. Eliminate SwitchToSectionDirective, getSectionFlagsAsString, and
TLOFELF::AtIsCommentChar.

llvm-svn: 78510

show more ...


# 245fdfb9 08-Aug-2009 Chris Lattner <[email protected]>

make target-specific TLOF impls (except PIC16) create target-specific
MCSection instances.

llvm-svn: 78500


# c9ea8fdd 08-Aug-2009 Chris Lattner <[email protected]>

eliminate TargetLoweringObjectFileSparc in favor of a TAI hook.
A TAI hook is appropriate in this case because this is just an
asm syntax issue, not a semantic difference. TLOF should model
the seman

eliminate TargetLoweringObjectFileSparc in favor of a TAI hook.
A TAI hook is appropriate in this case because this is just an
asm syntax issue, not a semantic difference. TLOF should model
the semantics of the section.

llvm-svn: 78498

show more ...


# ce7d1403 08-Aug-2009 Chris Lattner <[email protected]>

now that getOrCreateSection is all object-file specific,
give the impls an object-file-specific name. In the future
they can take different arguments etc.

llvm-svn: 78495


# 302041d5 08-Aug-2009 Chris Lattner <[email protected]>

sink getOrCreateSection down into all the object file implementations,
now that they create *all* the sections.

llvm-svn: 78494


# 1ff90134 06-Aug-2009 Chris Lattner <[email protected]>

Fix several fixmes and clean up code by sinking *all* section
creation activity into the target-specific subclasses of TLOF.
Before this, globals with explicit sections could be created by
the base c

Fix several fixmes and clean up code by sinking *all* section
creation activity into the target-specific subclasses of TLOF.
Before this, globals with explicit sections could be created by
the base class.

1. make getOrCreateSection protected, add a new getExplicitSectionGlobal
pure virtual method to assign sections to globals with a specified
section.
2. eliminate getSpecialCasedSectionGlobals, which is now PIC specific.
3. eliminate the getKindForNamedSection virtual method, which is
now just a static method for ELF.
4. Add implementions of getExplicitSectionGlobal for ELF/PECOFF/Darwin/PIC16.
They are now all detangled and understandable, woo! :)

llvm-svn: 78319

show more ...


# cbc7b265 05-Aug-2009 Chris Lattner <[email protected]>

expose SectionKindForGlobal to curious clients, named as
getKindForGlobal.

llvm-svn: 78156


# f222054d 04-Aug-2009 Chris Lattner <[email protected]>

enhance codegen to put 16-bit character strings into the
__TEXT,__ustring section on darwin.

llvm-svn: 78068


# eee9df0e 04-Aug-2009 Chris Lattner <[email protected]>

fix a fixme: don't create an explicit "CStringSection" for ELF,
it is just being used as a prefix, so forward substitute it directly.

llvm-svn: 78067


# 81bbf443 04-Aug-2009 Chris Lattner <[email protected]>

Add support emiting for 2/4 byte mergable strings to the ".rodata.str*"
section on ELF targets.

llvm-svn: 78066


12345678910