Displaying 6 results from an estimated 6 matches for "num_operand".
Did you mean:
num_operands
2010 Aug 20
0
[LLVMdev] Ocaml bindings in 2.8
...it here. In the future you could either file a bug
report or send the patch to llvm-commits. If no one replies, feel free
to let me know directly, since ocaml patches don't come around that
often so I may miss one here and there.
Also, I fixed the llvm_params bug in trunk, as well as exposed a
num_operands and a set_operand for you.
2016 Mar 23
1
Redundant load in llvm's codegen compares to gcc when accessing escaped pointer?
...oc, or the so-called
"struct hack":
http://c-faq.com/struct/structhack.html
For example:
typedef struct {
enum inst_type type;
unsigned num_ops;
struct operand ops[1];
} inst;
// allocate an instruction with specified number of operands
int *allocate_inst(unsigned num_operands) {
char *mem = malloc(sizeof(inst) + sizeof(struct operand) *
(num_operands-1));
return (inst *) mem;
}
Or maybe the reasoning is that computing a pointer off the beginning of
something (e.g. &c - X) is somehow worse than computing a pointer off the
end of something (e.g. &c + X...
2016 Mar 22
0
Redundant load in llvm's codegen compares to gcc when accessing escaped pointer?
Reply from Michael:
&x points to the start of object x, and &x - something (something != 0)
points outside object x. 'c' was a complete object, so &c-8 points
outside any object, hence the formation of that pointer is already
invalid (as is its dereference).
https://gcc.gnu.org/ml/gcc/2016-03/msg00185.html
>>On Fri, Mar 18, 2016 at 8:46 AM, Daniel Berlin <dberlin
2010 Aug 15
4
[LLVMdev] Ocaml bindings in 2.8
Hi,
Does 2.8 release plan to change anything in Ocaml bindings?
http://llvm.org/docs/ReleaseNotes.html#whatsnew does not list any
relevant features.
2.7 added 'operand' that can access each operand from a value.
external operand : llvalue -> int -> llvalue = "llvm_operand"
Does this binding also expose a primitive to return how many operands
a given value has?
I need
2016 Mar 19
2
Redundant load in llvm's codegen compares to gcc when accessing escaped pointer?
Agree, and I did : )
Please refer to this mailing list:
https://gcc.gnu.org/ml/gcc/2016-03/msg00179.html
On Sat, Mar 19, 2016 at 1:25 AM, Daniel Berlin <dberlin at dberlin.org> wrote:
> I suspect you should just go ask #1 on the gcc mailing list and see what
> the answer is.
> We are basically trying to figure out their reasoning, but we should
> instead just go ask what it is
2016 May 09
2
Replacing an instruction in a post-RA pass
...3.getReg()-8)%4){
MachineBasicBlock::instr_iterator NII = std::next(II);
//conflict if reg1 and reg3 are in same bank
errs() << "Conflict: ";
printOp(opcode);
errs() << " has " << num_operands << " register
operands:\n";
errs() << " r1: " << (reg1.getReg()-8) << " r2: " <<
(reg2.getReg()-8)
<< " r3: " << (reg3.getReg()-8) << "\n";
//b...