Displaying 20 results from an estimated 200 matches similar to: "How to make when developing machine function pass ?"
2015 Jul 02
2
[LLVMdev] [x86] Compiling in 32-bit mode causes 64-bit asm source to be silently converted to its 32-bit equavilent
Hi Craig,
I am Charles Li from Sony Playstation.
We are doing x86 code gen testing and, by chance, we noticed that compiling the 64-bit assembly instruction<https://msdn.microsoft.com/en-us/library/windows/hardware/ff561499(v=vs.85).aspx> "jrcxz" in 32-bit mode "-m32"
previously resulted in an error,
now gets silently converted into the 32-bit equivalent instruction
2018 Feb 09
2
retpoline mitigation and 6.0
On Fri, Feb 9, 2018 at 12:26 AM David Woodhouse <dwmw2 at infradead.org> wrote:
>
>
> On Fri, 2018-02-09 at 02:21 +0000, David Woodhouse wrote:
> > On Fri, 2018-02-09 at 01:18 +0000, David Woodhouse wrote:
> > >
> > >
> > > For now I'm just going to attempt to work around it like this in the
> > > kernel, so I can concentrate on the
2020 Mar 13
3
Why MachineBasicBlcok doesn't have transferPredecessors() ?
for example
I want to insert a new machine bb “before” a specific machine bb.
or split a mbb and keep the later one as the original one.
(to keep the label/Blackadder's correct
t)
(or keep other property of mbb)
so I need to transfer the original mbb's predecessor to the new mbb.
Nicolai Hähnle <nhaehnle at gmail.com> 於 2020年3月13日 週五 23:57 寫道:
> On Fri, Mar 13, 2020 at
2020 Jun 18
2
How to know the CallInst is a virtual call ?
So if I want to know whether a CallInst is a C++ virtual call or not.
I have to get the information at frontend/Clang.
and then pass the information to middle-end/LLVM IR by myself.
Is it right?
Thank you
David Blaikie <dblaikie at gmail.com> 於 2020年6月19日 週五 上午1:26寫道:
> On Thu, Jun 18, 2020 at 9:53 AM PenYiWang via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> >
2018 Aug 09
3
Replace "ret" with "pop+jump"
Hi
I want to replace all the return instructions in the program with pop
<reg>; jmp <reg>.
Should I use IRBuilder in LLVM IR level?
I found that there is a IRBuilder::CreateIndirectBr
Or Should I modify the code in lib/Target/X86/X86ISelLowering.cpp in
backend ?
I found that there is a X86TargetLowering::LowerCall
Which is better?
Thanks
-------------- next part --------------
2020 Feb 25
2
How to print all pass when using -flto floag ?
Hi
We knew that "clang -mllvm -debug-pass=Structure ..." can print all pass'
name.
But,
when we use LTO , -flto flag and gold plugin.
I found that the option " -debug-pass=Structure" would not pass to ld.
so it would not print all the LTO pass's name.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2020 Mar 13
2
Why MachineBasicBlcok doesn't have transferPredecessors() ?
Hi
I want to ask a question.
(Maybe it is a trivial question.)
I found that there is transferSuccessors() in MachineBasicBlcok
So that when manipulating MachineBasicBlock,
we can use transferSuccessors to update the CFG easily.
Why there is not transferPredecessors in MachineBasicBlcok ?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2020 Jun 18
2
How to know the CallInst is a virtual call ?
Hi
I know that a virtual call looks like this :
%4 = load %class.base*, %class.base** %1, align 8
%5 = bitcast %class.base* %4 to void (%class.base*)***
%6 = load void (%class.base*)**, void (%class.base*)*** %5, align 8
%7 = getelementptr inbounds void (%class.base*)*, void (%class.base*)**
%6, i64 0
%8 = load void (%class.base*)*, void (%class.base*)** %7, align 8
call void
2018 Sep 05
3
How to get return address at llvm ir level?
Hi
I want to write a FunctionPass to insert some code before return.
Funcion:
..
..
..
mov eax,[esp]
cmp eax,0x12345678
je 0x12345678
ret
(maybe stack will not balance)
I wonder that can I get the return address at llvm ir level?
I use IRBuilder to CreateICmpEQ and CreateCondBr.
but I don't how to get the value of return addrss.
I have found there is a Intrinsic::returnaddress.
Is
2020 Mar 13
2
How to simply split MachineBasicBlock ?
Hi
I am developing some machine function pass.
I want to split MachineBasicBlcok when I find some specific machine
instruction.
But I don't insert or delete any machine instruction.
I just "simply" , "purely" split the MachineBasicBlcok.
(So, I stole the idea from ARM64BranchRelaxation::splitBlockBeforeInstr.)
This is my code :
// I would pass call instruction to
2020 Feb 27
3
How to set DebugLoc when using IRBuilder's CreateCall ?
Hi
I want to insert some functions into the llvm bitcode ir files.
So I use IRBuilder and CreateCall().
But it how error : inlinable function call in a function with debug info
must have a !dbg location.
I don't know what DebugLoc should I give the new CallInst to setDebugLoc.
I Create this CallInst , so this CallInst doesn't hava so-called "DebugLoc"
mapping to the source
2018 Feb 09
0
retpoline mitigation and 6.0
On Fri, 2018-02-09 at 08:45 +0000, Chandler Carruth wrote:
> >
> > You're pushing the target (-0x20(%ebp)) onto the stack and then
> > *calling* __x86_indirect_thunk. So it looks like you're expecting
> > __x86_indirect_thunk to do something like
> >
> > call *4(%esp)
> > ret
> >
> > ... except that final 'ret' still
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:
2003 Sep 16
3
Release Engineering Status Report
Mike Silbersack wrote:
> On Tue, 16 Sep 2003, Scott Long wrote:
>
>
>>Patches have been floated on the mailing list that revert PAE in its
>>various stages. Maybe those need to be brought back up. Silby? Tor?
>>
>>Scott
>
>
> I believe that Tor's commit on August 30th resolved the PAE-related
> problems, so there is no need for a reversion.
2001 Aug 27
3
Netscape
Is it possible to install and run Netscape whitout having access to a
native windows.
--
Best regard,
Svend Bjerrum Jensen
http://www.sbj.esenet.dk
2001 Sep 19
2
MS Encarta?
Hi!
Does Microsoft Encarta (I have the '99 Version) run with wine? What
about Multimedia CDROMs in general?
Ulli
2001 Oct 01
2
glibcc < 2.2 how do I tell?
Hi,
I'm looking over the Wine documentation, and it says that the particular
version that looks like it will work with my version of RedHat 7.1 will
only work if the glibcc is 2.2 or above. How do I tell? I"m a newbie and
not sure exactly what the glibcc is.
TIA
2018 Feb 09
0
retpoline mitigation and 6.0
On Fri, 2018-02-09 at 02:21 +0000, David Woodhouse wrote:
> On Fri, 2018-02-09 at 01:18 +0000, David Woodhouse wrote:
> >
> >
> > For now I'm just going to attempt to work around it like this in the
> > kernel, so I can concentrate on the retpoline bits:
> > http://david.woodhou.se/clang-percpu-hack.patch
>
> 32-bit doesn't boot. Built without
2018 Feb 09
2
retpoline mitigation and 6.0
On Fri, 2018-02-09 at 01:18 +0000, David Woodhouse wrote:
>
> For now I'm just going to attempt to work around it like this in the
> kernel, so I can concentrate on the retpoline bits:
> http://david.woodhou.se/clang-percpu-hack.patch
32-bit doesn't boot. Built without CONFIG_RETPOLINE and with Clang 5.0
(and the above patch) it does. I'm rebuilding a Release build of
2005 Jan 27
2
netem bug?
Hi all,
I''m running some tests with netem and I noticed some strange behaviour
that looks like a bug: I''m pinging another machine and adding delay with
netem. When I tell netem to give me a 10ms delay, it works fine. The
problem is that when I ask for a 11ms delay, it gives me 20ms! It
happens for any value between 11ms an 20ms, and it repeats for values
over 20ms, now