| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 101342
|
|
|
|
|
|
| |
readability.
llvm-svn: 100756
|
|
|
|
| |
llvm-svn: 100709
|
|
|
|
| |
llvm-svn: 98378
|
|
|
|
|
|
| |
No functionality change.
llvm-svn: 98363
|
|
|
|
| |
llvm-svn: 98293
|
|
|
|
| |
llvm-svn: 95150
|
|
|
|
|
|
|
| |
Now the only use of the ELF writer is the JIT, which won't be
easy to fix in the short term. :( :(
llvm-svn: 95148
|
|
|
|
| |
llvm-svn: 94297
|
|
|
|
|
|
| |
having to pass various fields from it in. Simplify.
llvm-svn: 93686
|
|
|
|
| |
llvm-svn: 93664
|
|
|
|
| |
llvm-svn: 93627
|
|
|
|
| |
llvm-svn: 92502
|
|
|
|
|
|
|
|
| |
the new predicates I added) instead of going through a context and doing a
pointer comparison. Besides being cheaper, this allows a smart compiler
to turn the if sequence into a switch.
llvm-svn: 83297
|
|
|
|
| |
llvm-svn: 80717
|
|
|
|
| |
llvm-svn: 79777
|
|
|
|
| |
llvm-svn: 79763
|
|
|
|
| |
llvm-svn: 79749
|
|
|
|
|
|
| |
elf object file.
llvm-svn: 79029
|
|
|
|
| |
llvm-svn: 78948
|
|
|
|
|
|
|
| |
Use MCSectionELF methods as much as possible, removing some
ELFWriter methods which are now unused
llvm-svn: 78940
|
|
|
|
|
|
|
| |
syntactically as a string, very similiar to what Chris did with MachO.
The parsing support and validation is not introduced yet.
llvm-svn: 78890
|
|
|
|
|
|
| |
add support for PtrToInt, Add, Mul.
llvm-svn: 78552
|
|
|
|
|
|
|
|
| |
classes.
This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-)
llvm-svn: 78517
|
|
|
|
|
|
|
|
|
|
|
| |
Handle large integers, x86_fp80, ConstantAggregateZero, and two more ConstantExpr:
GetElementPtr and IntToPtr
Set SHF_MERGE bit for mergeable strings
Avoid zero initialized strings to be classified as a bss symbol
Don't allow common symbols to be classified as STB_WEAK
Add a constant to be used as a global value offset in data relocations
llvm-svn: 78476
|
|
|
|
|
|
|
|
|
|
|
|
| |
a dirty hack and isn't need anymore since the last x86 code emitter patch)
- Add a target-dependent modifier to addend calculation
- Use R_X86_64_32S relocation for X86::reloc_absolute_word_sext
- Use getELFSectionFlags whenever possible
- fix getTextSection to use TLOF and emit the right text section
- Handle global emission for static ctors, dtors and Type::PointerTyID
- Some minor fixes
llvm-svn: 78176
|
|
|
|
|
|
| |
defaults to being ELF.
llvm-svn: 77866
|
|
|
|
| |
llvm-svn: 77834
|
|
|
|
|
|
|
|
|
|
|
|
| |
compute it based on what it knows. As part of this, rename getSectionForMergeableConstant
to getSectionForConstant because it works for non-mergable constants also.
The only functionality change from this is that Xcore will start dropping
its jump tables into readonly section instead of data section in -static mode.
This should be fine as the linker resolves the relocations. If this is a
problem, let me know and we'll come up with another solution.
llvm-svn: 77833
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
should have no state that is specific to particular globals in the
section. In this case, it means the removal of the "isWeak" and
"ExplicitSection" bits. MCSection uses the new form of SectionKind.
To handle isWeak, I introduced a new SectionInfo class, which is
SectionKind + isWeak, and it is used by the part of the code generator
that does classification of a specific global.
The ExplicitSection disappears. It is moved onto MCSection as a new
"IsDirective" bit. Since the Name of a section is either a section
or directive, it makes sense to keep this bit in MCSection. Ultimately
the creator of MCSection should canonicalize (e.g.) .text to whatever
the actual section is.
llvm-svn: 77803
|
|
|
|
|
|
| |
MCSection subclasses yet, but this is a step in the right direction.
llvm-svn: 77708
|
|
|
|
|
|
| |
initialize method, which can be called when an MCContext is available.
llvm-svn: 77687
|
|
|
|
|
|
| |
No functionality change.
llvm-svn: 77432
|
|
|
|
| |
llvm-svn: 77354
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it is highly specific to the object file that will be generated in the end,
this introduces a new TargetLoweringObjectFile interface that is implemented
for each of ELF/MachO/COFF/Alpha/PIC16 and XCore.
Though still is still a brutal and ugly refactoring, this is a major step
towards goodness.
This patch also:
1. fixes a bunch of dangling pointer problems in the PIC16 backend.
2. disables the TargetLowering copy ctor which PIC16 was accidentally using.
3. gets us closer to xcore having its own crazy target section flags and
pic16 not having to shadow sections with its own objects.
4. fixes wierdness where ELF targets would set CStringSection but not
CStringSection_. Factor the code better.
5. fixes some bugs in string lowering on ELF targets.
llvm-svn: 77294
|
|
|
|
| |
llvm-svn: 77238
|
|
|
|
| |
llvm-svn: 77232
|
|
|
|
|
|
| |
instead and drive things based off of that.
llvm-svn: 77184
|
|
|
|
|
|
| |
to its classification.
llvm-svn: 77140
|
|
|
|
| |
llvm-svn: 77138
|
|
|
|
| |
llvm-svn: 77137
|
|
|
|
| |
llvm-svn: 77134
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Spell SectionFlags::Writeable as "Writable".
2. Add predicates for deriving SectionFlags from SectionKinds.
3. Sink ELF-specific getSectionPrefixForUniqueGlobal impl into
ELFTargetAsmInfo.
4. Fix SectionFlagsForGlobal to know that BSS/ThreadBSS has the
BSS bit set (the real fix for PR4619).
5. Fix isSuitableForBSS to not put globals with explicit sections
set in BSS (which was the reason #4 wasn't fixed earlier).
6. Remove my previous hack for PR4619.
llvm-svn: 77085
|
|
|
|
|
|
|
|
| |
a new getSectionForMergableConstant hook. This removes one dependence
of TAI on Type, and provides the hook with enough info to make the
right decision based on whether the global has relocations etc.
llvm-svn: 76705
|
|
|
|
|
|
|
| |
global declared symbols are initialized with references from other global
symbols.
llvm-svn: 76540
|
|
|
|
|
|
|
| |
are referenced, ignore the relocation entry and patch the relocatable field with
the computed symbol offset directly
llvm-svn: 76414
|
|
|
|
|
|
| |
usage inside getSection* functions
llvm-svn: 76347
|
|
|
|
|
|
|
| |
Use proper relocation type to build relocations for JumpTables (rodata
sections).
llvm-svn: 76326
|
|
|
|
|
|
| |
vector insertions inside the loop
llvm-svn: 76195
|
|
|
|
| |
llvm-svn: 75898
|