| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
header.
llvm-svn: 45708
|
| |
|
|
| |
llvm-svn: 45707
|
| |
|
|
| |
llvm-svn: 45706
|
| |
|
|
| |
llvm-svn: 45705
|
| |
|
|
|
|
| |
incompatibility.
llvm-svn: 45704
|
| |
|
|
| |
llvm-svn: 45703
|
| |
|
|
| |
llvm-svn: 45701
|
| |
|
|
| |
llvm-svn: 45700
|
| |
|
|
| |
llvm-svn: 45699
|
| |
|
|
| |
llvm-svn: 45698
|
| |
|
|
| |
llvm-svn: 45697
|
| |
|
|
| |
llvm-svn: 45696
|
| |
|
|
|
|
|
| |
Make MachineInstr::getDesc return a reference instead
of a pointer, since it can never be null.
llvm-svn: 45695
|
| |
|
|
| |
llvm-svn: 45694
|
| |
|
|
| |
llvm-svn: 45693
|
| |
|
|
|
|
|
|
| |
all clients over to using predicates instead of these flags directly.
These are now private values which are only to be used to statically
initialize the tables.
llvm-svn: 45692
|
| |
|
|
| |
llvm-svn: 45691
|
| |
|
|
|
|
|
| |
flags that can be set. Add predicates for the ones lacking it, and switch
some clients over to using the predicates instead of Flags directly.
llvm-svn: 45690
|
| |
|
|
| |
llvm-svn: 45689
|
| |
|
|
|
|
| |
isConditionalBranch() and isUnconditionalBranch() methods.
llvm-svn: 45688
|
| |
|
|
|
|
|
| |
Evan, please review the comments I added to getNumDefs to make sure
that they are accurate, thx.
llvm-svn: 45687
|
| |
|
|
|
|
|
| |
TargetInstrDescriptor class and shrink to 16-bits, saving a
word in TargetInstrDescriptor. Add some comments.
llvm-svn: 45686
|
| |
|
|
| |
llvm-svn: 45685
|
| |
|
|
|
|
| |
just unconditionally use the def name of the instruction.
llvm-svn: 45684
|
| |
|
|
| |
llvm-svn: 45683
|
| |
|
|
| |
llvm-svn: 45682
|
| |
|
|
| |
llvm-svn: 45681
|
| |
|
|
| |
llvm-svn: 45680
|
| |
|
|
| |
llvm-svn: 45679
|
| |
|
|
|
|
| |
into TargetInstrDescriptor from TargetInstrInfo.
llvm-svn: 45678
|
| |
|
|
|
|
|
| |
over to using them, instead of diddling Flags directly. Change the
various flags from const variables to enums.
llvm-svn: 45677
|
| |
|
|
|
|
|
| |
providing a misleading facility. It's used once in the MIPS backend
and hardcoded as "\t.globl\t" everywhere else.
llvm-svn: 45676
|
| |
|
|
| |
llvm-svn: 45675
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that it is cheap and efficient to get.
Move a variety of predicates from TargetInstrInfo into
TargetInstrDescriptor, which makes it much easier to query a predicate
when you don't have TII around. Now you can use MI->getDesc()->isBranch()
instead of going through TII, and this is much more efficient anyway. Not
all of the predicates have been moved over yet.
Update old code that used MI->getInstrDescriptor()->Flags to use the
new predicates in many places.
llvm-svn: 45674
|
| |
|
|
| |
llvm-svn: 45673
|
| |
|
|
|
|
| |
Some day I'll get it all moved over...
llvm-svn: 45672
|
| |
|
|
| |
llvm-svn: 45671
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ShadowStackCollector, which additionally has reduced overhead with
no sacrifice in portability.
Considering a function @fun with 8 loop-local roots,
ShadowStackCollector introduces the following overhead
(x86):
; shadowstack prologue
movl L_llvm_gc_root_chain$non_lazy_ptr, %eax
movl (%eax), %ecx
movl $___gc_fun, 20(%esp)
movl $0, 24(%esp)
movl $0, 28(%esp)
movl $0, 32(%esp)
movl $0, 36(%esp)
movl $0, 40(%esp)
movl $0, 44(%esp)
movl $0, 48(%esp)
movl $0, 52(%esp)
movl %ecx, 16(%esp)
leal 16(%esp), %ecx
movl %ecx, (%eax)
; shadowstack loop overhead
(none)
; shadowstack epilogue
movl 48(%esp), %edx
movl %edx, (%ecx)
; shadowstack metadata
.align 3
___gc_fun: # __gc_fun
.long 8
.space 4
In comparison to LowerGC:
; lowergc prologue
movl L_llvm_gc_root_chain$non_lazy_ptr, %eax
movl (%eax), %ecx
movl %ecx, 48(%esp)
movl $8, 52(%esp)
movl $0, 60(%esp)
movl $0, 56(%esp)
movl $0, 68(%esp)
movl $0, 64(%esp)
movl $0, 76(%esp)
movl $0, 72(%esp)
movl $0, 84(%esp)
movl $0, 80(%esp)
movl $0, 92(%esp)
movl $0, 88(%esp)
movl $0, 100(%esp)
movl $0, 96(%esp)
movl $0, 108(%esp)
movl $0, 104(%esp)
movl $0, 116(%esp)
movl $0, 112(%esp)
; lowergc loop overhead
leal 44(%esp), %eax
movl %eax, 56(%esp)
leal 40(%esp), %eax
movl %eax, 64(%esp)
leal 36(%esp), %eax
movl %eax, 72(%esp)
leal 32(%esp), %eax
movl %eax, 80(%esp)
leal 28(%esp), %eax
movl %eax, 88(%esp)
leal 24(%esp), %eax
movl %eax, 96(%esp)
leal 20(%esp), %eax
movl %eax, 104(%esp)
leal 16(%esp), %eax
movl %eax, 112(%esp)
; lowergc epilogue
movl 48(%esp), %edx
movl %edx, (%ecx)
; lowergc metadata
(none)
llvm-svn: 45670
|
| |
|
|
|
|
|
|
|
| |
up to the various compiler pipelines.
This doesn't actually add support for any GC algorithms, which means it
temporarily breaks a few tests. To be fixed shortly.
llvm-svn: 45669
|
| |
|
|
| |
llvm-svn: 45668
|
| |
|
|
| |
llvm-svn: 45667
|
| |
|
|
| |
llvm-svn: 45666
|
| |
|
|
| |
llvm-svn: 45665
|
| |
|
|
|
|
| |
pretty print the type name for void.
llvm-svn: 45664
|
| |
|
|
|
|
| |
fiends. Change Makefile.ocaml to not touch CFLAGS.
llvm-svn: 45663
|
| |
|
|
| |
llvm-svn: 45662
|
| |
|
|
| |
llvm-svn: 45661
|
| |
|
|
| |
llvm-svn: 45660
|
| |
|
|
| |
llvm-svn: 45659
|
| |
|
|
|
|
|
|
|
| |
direct calls bails out unless caller and callee have essentially
equivalent parameter attributes. This is illogical - the callee's
attributes should be of no relevance here. Rework the logic, which
incidentally fixes a crash when removed arguments have attributes.
llvm-svn: 45658
|