Hello,
I'm trying to add a new instruction after a given instruction in a basic
block.
Until LLVM 3.7, I was using the following code:
BB->getInstList().insertAfter(I, new_inst);
[where both I and new_inst are Instruction*]
In LLVM 3.8 however, the SymbolTableList was created as a wrapper
Hello,
I'd appreciate it if someone could give me some hints on my questions below.
Many thanks,
Simona
-- Forwarded message --
From: Simona Simona
Date: Mon, Feb 29, 2016 at 11:09 AM
Subject: Binary instruction operand type - Fast-math-flags - Vectorized IR
code
To: cfe-users@l
Hello,
I'm using LLVM 3.4 and noticed that some of the IR binary instructions have
the following format:
= frem [fast-math flags]* , ; yields
ty:result
I'm mainly interested in extracting the type of the operands, regardless of
whether the fast-math-flags are set or not.
In the cas
Hello,
I'm using LLVM 3.4 and have the following IR instruction:
%tmp1 = load *<2 x float>** %tmp, align 1, !dbg !26
The operand 0 of the load instruction is of type PointerType. I've checked
this using: I.getOperand(0)->getType()->isPointerTy().
I would appreciate if someone could tel
>> I would have the same question for other instrinsics, such as memset and
>> memmove.
>>
>> Thanks,
>> Simona
>>
>> On Thu, Feb 11, 2016 at 5:24 PM, David Blaikie
>> wrote:
>>
>>>
>>>
>>> On Thu, Feb 11, 2016 at 7:25
11, 2016 at 5:24 PM, David Blaikie wrote:
>
>
> On Thu, Feb 11, 2016 at 7:25 AM, Simona Simona via cfe-users <
> cfe-users@lists.llvm.org> wrote:
>
>> Hi,
>>
>> I'm using clang 3.4 to generate the bitcode of a C source file.
>> The source file is
Hi,
I'm using clang 3.4 to generate the bitcode of a C source file.
The source file is the following:
typedef struct __attribute__ ((__packed__)) { float x, y; } myType;
myType make_float2(float x, float y) { myType f = { x, y }; return f; }
int main(int argc, char* argv[])
{
myType myVa