Hello, I'd appreciate it if someone could give me some hints on my questions below.
Many thanks, Simona ---------- Forwarded message ---------- From: Simona Simona <other.dev.sim...@gmail.com> Date: Mon, Feb 29, 2016 at 11:09 AM Subject: Binary instruction operand type - Fast-math-flags - Vectorized IR code To: cfe-users@lists.llvm.org Hello, I'm using LLVM 3.4 and noticed that some of the IR binary instructions have the following format: <result> = frem [fast-math flags]* <ty> <op1>, <op2> ; 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 case above, that would be floating-point or vector. Q1. I was just wondering if doing I.getOperand(0)->getType() would be sufficient to extract the operands type. I've tried it and I get a TokenTyID for a float operand. Q2. Moreover, how can one extract the fast-math-flags? Q3. I'd also appreciate it if someone could tell me what C/C++ source code should I use to generate IR code that includes some binary operation(s) with vector operands. Many thanks, Simona
_______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users