Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] How to Find Instruction Encoding for a MachineInstr"
2012 Oct 24
0
[LLVMdev] How to Find Instruction Encoding for a MachineInstr
On 10/23/2012 1:58 PM, John Criswell wrote:
> Dear All,
>
> I'm enhancing a MachineFunctionPass that enforces control-flow
> integrity. One of the things I want to do is to set the alignment of
> an instruction (by adding NOPs before it in the MachineBasicBlock or
> by emitting an alignment directive to the assembler) if it causes a
> specific sequence of bytes to be
2012 Oct 24
1
[LLVMdev] How to Find Instruction Encoding for a MachineInstr
On Oct 23, 2012, at 6:22 PM, Joshua Cranmer <pidgeot18 at gmail.com> wrote:
> On 10/23/2012 1:58 PM, John Criswell wrote:
>> Dear All,
>>
>> I'm enhancing a MachineFunctionPass that enforces control-flow integrity. One of the things I want to do is to set the alignment of an instruction (by adding NOPs before it in the MachineBasicBlock or by emitting an alignment
2012 Oct 24
0
[LLVMdev] How to Find Instruction Encoding for a MachineInstr
What function provides the encoding length? X86 in particular is so
difficult to encode that only the old style JIT and the MC Code Emitter
could possibly know how many bytes something takes.
On Tue, Oct 23, 2012 at 11:58 AM, John Criswell <criswell at illinois.edu>wrote:
> Dear All,
>
> I'm enhancing a MachineFunctionPass that enforces control-flow integrity.
> One of the
2012 Oct 24
1
[LLVMdev] How to Find Instruction Encoding for a MachineInstr
On 10/23/12 7:19 PM, Craig Topper wrote:
> What function provides the encoding length? X86 in particular is so
> difficult to encode that only the old style JIT and the MC Code
> Emitter could possibly know how many bytes something takes.
The getSize() method of MCInstrDesc which can be fetched from a
MachineInstr using the getDesc() method:
2017 Feb 04
2
How to get assembly opcode mnemonic(s) corresponding to a MachineInstr?
Hi,
I'd like to modify MachineBasicBlock contents within a
MachineFunctionPass on the basis of how many CPU cycles the assembly
instructions corresponding to the MBB take. I'm using the AVR backend
and the number of CPU cycles every AVR assembly operation takes is
openly available.
Is there any straightforward way of getting the opcode mnemonics
corresponding to a MachineInstr? I've
2018 Jul 10
2
Finding Size of X86 instruction in MachineFunctionPass
The actual size of even a MC instruction will change during relaxation--we don't choose between 8-bit jumps and wider jumps until relaxation. You can get the actual encoding of an MCInst via MCCodeEmitter, but if you expect relaxation to occur, or particularly if you're testing before register allocation, the size could only be an estimate and shouldn't be trusted for exact size.
2007 Sep 19
4
[LLVMdev] 2.1 Pre-Release Available (testers needed)
On Tue, Sep 18, 2007 at 06:41:38PM +1000, Emil Mikulic wrote:
> The "make check" produced:
> === Summary ===
>
> # of expected passes 2209
> # of unexpected failures 41
> # of expected failures 5
> gmake[1]: *** [check-local] Error 1
> gmake[1]: Leaving directory `/home/emil/ll/objdir-llvm/test'
> gmake: ***
2017 Aug 22
5
[RFC] mir-canon: A new tool for canonicalizing MIR for cleaner diffing.
Patch for review.
On Mon, Aug 21, 2017 at 11:45 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com>
wrote:
> Ping.
>
> Still working on preparing code for review. Will have a patch for review
> ready in the coming days.
>
> PL
>
> On Tue, Aug 15, 2017 at 12:06 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com>
> wrote:
>
>> Hi,
>>
>>
>>
2005 Sep 27
1
[LLVMdev] How does the memory of MachineInstr objects are managed?
A question about how the memory of object in LLVM are managed.
I dived in some source files but still don't have any idea how the
memory of MachineInstr object are managed. It doesn't look like
reference counting.
I'm writing an instruction scheudling code, the new order of
MachineInstr* in a MachineBasicBlock is stored in a "schedule". All
MachineInstr* in
2015 Sep 08
4
Inserting MachineInstr's
Hi,
I have a task to complete and I'm getting stuck. I can't find anything comparable in the documentation. The shortest explanation I can give is as follows: I need to use double-precision floating point values for floating-point multiplies. I'll not go into why: That would take the discussion away from the essential problem. E.g.
Replace:
fmuls %f20,%f21,%f8
with the
2013 Sep 06
5
[LLVMdev] Extracting libmachine from libcodegen (bug 1121)
Hi,
One of the long-standing code clean-up bugs in Bugzilla is to extract
the Machine* code from the CodeGen library into a separate one, on
which CodeGen depends (
http://llvm.org/bugs/show_bug.cgi?id=1121).
I'd like to start working on this. The general approach I'm planning to take is:
1. Identify which code to move.
2. Eliminate all dependencies that the Machine code has on the
2007 Sep 19
0
[LLVMdev] 2.1 Pre-Release Available (testers needed)
On Wed, Sep 19, 2007 at 05:24:12PM +1000, Emil Mikulic wrote:
> http://goanna.cs.rmit.edu.au/~emil/llvm2.1-check-debug.txt
Here's an ARM test that cores:
$ llvm-as < /home/emil/ll/llvm-2.1/test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll | llc -march=arm -mattr=+v6,+vfp2
Segmentation fault (core dumped)
$ gdb `which llc` llc.core
[...]
(gdb) where
#0 0x0853d606 in
2015 Dec 02
4
Cloning a MachineInstr
I'm trying to clone a MachineInstr in the AsmPrinter::EmitInstruction, Here
is the code:
void EsenciaAsmPrinter::EmitInstruction(const MachineInstr *MI) {
const MachineFunction *MF = MI->getParent()->getParent();
MachineInstr *CloneMI = MF->CloneMachineInstr(MI);
...
...
}
The problem is that MF is a const and CloneMachineInstr expects a
non-const. Does anybody know if there is
2014 Nov 14
2
[LLVMdev] Is there a path from MachineInstr to the associated Instruction
Hi,
Recently, I am working on some information collection on the machine
instruction (MachineInstr) level.
But, sometimes, I need check the corresponding IR level instruction of the
a machine instruction.
When visiting a machine instruction which is a call
(MachineInstr::isCall()), I need to check the arguments of this call site.
I know that the CallSite class provides good facility for this
2011 Jul 01
2
[LLVMdev] LLVM Instr from MachineInstr
Hi,
Is there any way to get a pointer to the LLVM Instr from which a
particular MachineInstr is generated ?
Although I understand it goes through many optimization after a LLVM
instruction is converted to SDAG node, so maintaining such a mapping
will be hard. Still is the mapping stored some where which can give
some sane results at least in case of -O0?
Thanks and regards,
Ankur
2014 Oct 02
2
[LLVMdev] Need guidance regarding MachineFunctionPass
Hello,
I am writing a MachineFunctionPass that inspects the generated machine
code, and examines each opcode and its corresponding operands. If the
'instruction + operands' match a particular sequence, then the pass should
replace them with a fixed instruction + operands sequence. I tried using
MachineInstr's getOpcode and getOperand functions but the pass didn't work
as expected.
2009 Jul 31
3
[LLVMdev] RFC: MachineInstr Annotations
I'm getting to the point where I want to contribute some more
MachineInstr comment support for things like spills. As we've
discussed before, we don't have all of the information available
in AsmPrinter to synthesize the kind of comments that can be
helpful for debugging performance issues with register allocators
(our primary use for these kinds of comments).
In order to get this
2013 Sep 11
0
[LLVMdev] Extracting libmachine from libcodegen (bug 1121)
On Sep 5, 2013, at 5:15 PM, Ken Dyck <kd at kendyck.com> wrote:
> Hi,
>
> One of the long-standing code clean-up bugs in Bugzilla is to extract
> the Machine* code from the CodeGen library into a separate one, on
> which CodeGen depends (
> http://llvm.org/bugs/show_bug.cgi?id=1121).
>
> I'd like to start working on this. The general approach I'm planning
2011 Jul 01
0
[LLVMdev] LLVM Instr from MachineInstr
Hi Ankur,
For a MachineBasicBlock you can call getBasicBlock() to find the IR level BasicBlock from which it was generated (if there isn't a one, it will return NULL). I don't know of a way to get a finer granularity than that, though.
-Jim
On Jul 1, 2011, at 1:06 AM, ankur deshwal wrote:
> Hi,
>
> Is there any way to get a pointer to the LLVM Instr from which a
>
2008 Feb 08
2
[LLVMdev] Some questions about live intervals
Hi Evan,
Here is a patch for the LiveIntervalAnalysis that we discussed.
--- Evan Cheng <evan.cheng at apple.com> schrieb:
> > 1) What is the easiest way to understand which MBB a given
> instruction index belongs to? All the required information is
> available in the
> > MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful
> to add a small function