Displaying 20 results from an estimated 60 matches for "ltmp2".
Did you mean:
tmp2
2014 May 11
2
[LLVMdev] [cfe-dev] Code generation for noexcept functions
...gt; # BB#1: # %_Z4testPFvvE.exit
> .Ltmp3:
> callq *%rbx
> .Ltmp4:
> # BB#2: # %_Z4testPFvvE.exit3
> popq %rbx
> retq
> .LBB0_3: # %terminate.lpad.i
> .Ltmp2:
> movq %rax, %rdi
> callq __clang_call_terminate
> .LBB0_4: # %terminate.lpad.i2
> .Ltmp5:
> movq %rax, %rdi
> callq __clang_call_terminate
> .Ltmp8:
> .size _Z5test2PFvvE, .Ltmp8-_Z5test2PFv...
2020 Feb 28
2
Is BlockAddress always correct ?
Hi
I use BlockAddress to get the address of BasicBlock ,
and I use GlobalVariable 's getInitializer()
to pass the address of BasicBlock to the global variable of my own program
and then I print it out.
But , I found that BlockAddress is not always correct.
For example, some function's rsp (stack pointer) or other register is
maintained by caller,
so it would be like:
2011 Jul 28
2
[LLVMdev] LLVMdev Digest, Vol 85, Issue 50
...(...) {
print("caught (...)\n");
}
}
.section __TEXT,__gcc_except_tab
...
;; CallSite Table
.long Ltmp0-Leh_func_begin0
.long Ltmp1-Ltmp0 <--- this region
covers the call to foo
.long Ltmp2-Leh_func_begin0
.byte 1 <--- this is it's
Action Table index
...
;; Action Table
.byte 1
.byte 0
;; Types Table
.long 0
------------------------------------------------------------------------
------------...
2012 May 24
4
[LLVMdev] use AVX automatically if present
...- -mattr avx avx.ll
.file "avx.ll"
.text
.globl _fun1
.align 16, 0x90
.type _fun1, at function
_fun1: # @_fun1
.cfi_startproc
# BB#0: # %_L1
pushq %rbp
.Ltmp2:
.cfi_def_cfa_offset 16
.Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
.Ltmp4:
.cfi_def_cfa_register %rbp
vmovaps (%rdi), %ymm0
vaddps (%rsi), %ymm0, %ymm0
vmovaps %ymm0, (%rdi)
popq %rbp
vzeroupper
ret...
2011 Jul 28
0
[LLVMdev] LLVMdev Digest, Vol 85, Issue 50
...## Call site Encoding = udata4
.byte 26 ## Call site table length
## >> Call Site 1 <<
## Call between Ltmp0 and Ltmp1
## jumps to Ltmp2
## On action: cleanup
Lset0 = Ltmp0-Leh_func_begin0
.long Lset0
Lset1 = Ltmp1-Ltmp0
.long Lset1
Lset2 = Ltmp2-Leh_func_begin0
.long Lset2
.byte 0
Same thing.
For contrast, here is the result from gcc-4.2 on your catch-all code:
.globl __Z3barv
__Z3ba...
2012 May 24
0
[LLVMdev] use AVX automatically if present
...le "avx.ll"
> .text
> .globl _fun1
> .align 16, 0x90
> .type _fun1, at function
> _fun1: # @_fun1
> .cfi_startproc
> # BB#0: # %_L1
> pushq %rbp
> .Ltmp2:
> .cfi_def_cfa_offset 16
> .Ltmp3:
> .cfi_offset %rbp, -16
> movq %rsp, %rbp
> .Ltmp4:
> .cfi_def_cfa_register %rbp
> vmovaps (%rdi), %ymm0
> vaddps (%rsi), %ymm0, %ymm0
> vmovaps %ymm0, (%rdi)
> popq %rbp...
2010 Aug 27
0
[LLVMdev] What does this error mean: psuedo instructions should be removed before code emission?
...ternalLinkage, "" ...
Here is the log of machine instructions before and after emitEpilogue
for this function:
* PEI::insertPrologEpilogCode: === >> before emitEpilogue
- insn: PUSH64r %RBP<kill>, %RSP<imp-def>, %RSP<imp-use>
- insn: PROLOG_LABEL <MCSym=.Ltmp2>
- insn: %RBP<def> = MOV64rr %RSP
- insn: PROLOG_LABEL <MCSym=.Ltmp3>
- insn: %RDI<def> = MOV64ri64i32 60910096
- insn: %RAX<def> = MOV64ri
<ga:@_ZN010HelloWorld4mainEPN13ContainerSVecE>
- insn: TCRETURNri64 %RAX<kill>, 0, %RDI<kill>, %RA...
2010 Aug 26
2
[LLVMdev] What does this error mean: psuedo instructions should be removed before code emission?
On Aug 26, 2010, at 12:59 PMPDT, Eric Christopher wrote:
> On Aug 26, 2010, at 12:25 PM, Yuri wrote:
>> On 08/26/2010 11:53, Eric Christopher wrote:
>>> Could you get it to print out the instruction when it happens?
>>> (just change the line above the error message to print it out to
>>> errs()).
>>>
>>> It basically means that a pseudo
2012 Jul 29
3
[LLVMdev] rotate
...clang) -isysroot $ISYSROOT ror.c -c -S -Os -o -
> ======
>
> yielding an assembly output of:
> ======
> .section __TEXT,__text,regular,pure_instructions
> .globl _rotr
> _rotr: ## @rotr
> .cfi_startproc
> ## BB#0:
> pushq %rbp
> Ltmp2:
> .cfi_def_cfa_offset 16
> Ltmp3:
> .cfi_offset %rbp, -16
> movq %rsp, %rbp
> Ltmp4:
> .cfi_def_cfa_register %rbp
> movb %sil, %cl
> rorl %cl, %edi<==== Rotate instruction
> movl %edi, %eax
> popq %rbp
> ret
> .cfi_endproc
> .subsections_via_symb...
2010 Aug 27
2
[LLVMdev] What does this error mean: psuedo instructions should be removed before code emission?
...; ...
>
> Here is the log of machine instructions before and after
> emitEpilogue for this function:
> * PEI::insertPrologEpilogCode: === >> before emitEpilogue
> - insn: PUSH64r %RBP<kill>, %RSP<imp-def>, %RSP<imp-use>
> - insn: PROLOG_LABEL <MCSym=.Ltmp2>
> - insn: %RBP<def> = MOV64rr %RSP
> - insn: PROLOG_LABEL <MCSym=.Ltmp3>
> - insn: %RDI<def> = MOV64ri64i32 60910096
> - insn: %RAX<def> = MOV64ri
> <ga:@_ZN010HelloWorld4mainEPN13ContainerSVecE>
> - insn: TCRETURNri64 %RAX<kill>, 0,...
2011 Sep 02
2
[LLVMdev] Exception Tables in latest LLVM
...in0 # Region length
.long .Lset1
.long 0 # Landing pad
.uleb128 0 # Action
.Lset2 = .Ltmp0-.Leh_func_begin0 # Region start
.long .Lset2
.Lset3 = .Ltmp1-.Ltmp0 # Region length
.long .Lset3
.Lset4 = .Ltmp2-.Leh_func_begin0 # Landing pad
.long .Lset4
.uleb128 0 # Action
.Lset5 = .Ltmp1-.Leh_func_begin0 # Region start
.long .Lset5
.Lset6 = .Leh_func_end0-.Ltmp1 # Region length
.long .Lset6
.long 0 # Landing pa...
2012 Jul 29
0
[LLVMdev] rotate
...tformPath)/Developer/SDKs/MacOSX10.8.sdk
$(xcrun -find clang) -isysroot $ISYSROOT ror.c -c -S -Os -o -
======
yielding an assembly output of:
======
.section __TEXT,__text,regular,pure_instructions
.globl _rotr
_rotr: ## @rotr
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp4:
.cfi_def_cfa_register %rbp
movb %sil, %cl
rorl %cl, %edi <==== Rotate instruction
movl %edi, %eax
popq %rbp
ret
.cfi_endproc
.subsections_via_symbols
======
I hope this helps.
Mic...
2013 Jul 10
4
[LLVMdev] unaligned AVX store gets split into two instructions
...--------------------------------------------------
Running llvm-32/bin/llc vstore.ll creates:
.section __TEXT,__text,regular,pure_instructions
.globl _vstore
.align 4, 0x90
_vstore: ## @vstore
.cfi_startproc
## BB#0: ## %entry
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp4:
.cfi_def_cfa_register %rbp
vmovups (%rdi), %ymm0
popq %rbp
ret
.cfi_endproc
----------------------------------------------------------------
Running llvm-33/bin/llc vstore.ll creates:
.section __TEXT,__text,r...
2012 Jul 29
2
[LLVMdev] rotate
in C or C++, how can I get clang/llvm to try and do a "rotate".
(want to test this code in the mips16 port)
i.e. emit rotr node.
tia.
reed
2013 Sep 05
1
[LLVMdev] AVX calling convention?
...p), %ymm0
vmovdqa %ymm0, (%rsp)
vzeroupper
callq __Z14convert_char16Dv16_s
which passes the argument on the stack. The callee, however, begins with
__Z14convert_char16Dv16_s: ## @_Z14convert_char16Dv16_s
.cfi_startproc
## BB#0: ## %entry
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp4:
.cfi_def_cfa_register %rbp
vextractf128 $1, %ymm0, %xmm1
which expects the argument in %ymm0. However, the vzeroupper in the caller just destroyed part of %ymm0...
My question is:
What decides this calling conventio...
2013 Sep 06
0
[LLVMdev] CFI Directives
...is something which cannot be encoded in CFI? or if it can be, what's the best way?
In this case that is not encoded because what is encoded is that the
call frame in that region is rbp. Without a frame pointer, compiling
void f(void *);
void g(void) {
f(alloca(100));
}
produces
pushq %rbx
Ltmp2:
.cfi_def_cfa_offset 16
subq $112, %rsp
Ltmp3:
.cfi_def_cfa_offset 128
Ltmp4:
.cfi_offset %rbx, -16
Which does contain the rsp updates. The two places I can think with
some documentation are
http://www.dwarfstd.org/doc/DWARF4.pdf (the 6.4 Call Frame Information
section). This is the old .debug_fr...
2012 Jul 29
0
[LLVMdev] rotate
...g this with -O0 on x86-64 can yield the wrong result since clang will emit shifts and on intel shifts are mod the register size:
=====
.section __TEXT,__text,regular,pure_instructions
.globl _ror
.align 4, 0x90
_ror: ## @ror
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp4:
.cfi_def_cfa_register %rbp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
movl -4(%rbp), %edi
movq -16(%rbp), %rsi
movl %esi, %eax
movl %eax, %ecx
## kill: CL<def> ECX<ki...
2011 Jul 28
0
[LLVMdev] LLVMdev Digest, Vol 85, Issue 50
On Jul 28, 2011, at 8:41 AM, Peter Lawrence wrote:
> In short the problem is that there is an ambiguity between a cleanup handler having
> an Action Table entry that looks like
> .byte 1 ;; Type = 1 (ie #1 entry in Types Table)
> .byte 0 ;; Next = 0 (ie none, ie this is the list terminator for this try-statement)
> together with a corresponding Types Table entry #1 that looks
2010 Aug 27
0
[LLVMdev] What does this error mean: psuedo instructions should be removed before code emission?
...t;
>> Here is the log of machine instructions before and after emitEpilogue for this function:
>> * PEI::insertPrologEpilogCode: === >> before emitEpilogue
>> - insn: PUSH64r %RBP<kill>, %RSP<imp-def>, %RSP<imp-use>
>> - insn: PROLOG_LABEL <MCSym=.Ltmp2>
>> - insn: %RBP<def> = MOV64rr %RSP
>> - insn: PROLOG_LABEL <MCSym=.Ltmp3>
>> - insn: %RDI<def> = MOV64ri64i32 60910096
>> - insn: %RAX<def> = MOV64ri <ga:@_ZN010HelloWorld4mainEPN13ContainerSVecE>
>> - insn: TCRETURNri64 %RAX<kill&...
2011 Sep 02
0
[LLVMdev] Exception Tables in latest LLVM
....Lset1
> .long 0 # Landing pad
> .uleb128 0 # Action
> .Lset2 = .Ltmp0-.Leh_func_begin0 # Region start
> .long .Lset2
> .Lset3 = .Ltmp1-.Ltmp0 # Region length
> .long .Lset3
> .Lset4 = .Ltmp2-.Leh_func_begin0 # Landing pad
> .long .Lset4
> .uleb128 0 # Action
> .Lset5 = .Ltmp1-.Leh_func_begin0 # Region start
> .long .Lset5
> .Lset6 = .Leh_func_end0-.Ltmp1 # Region length
> .long .Lset6
> .long...