Displaying 2 results from an estimated 2 matches for "_neg".
Did you mean:
_beg
2008 Sep 23
1
[LLVMdev] Tablegen strings
...;IL_OP_MOV, (outs GPR:$dst), (ins
GPR:$src0),
"mov $dst, $src0", [(set GPR:$dst, (fneg GPR:$src0))]>;
I want to place a modifier directly after $src0 in the string so that no
space is between the string
and the matched register. I.e. I want to generate "mov $dst, $src0_neg",
however, by putting the
_neg right after $src0 forces it to attempt to match against src0_neg
instead of just src0. Where
can I find the rules for the string pattern matcher so that I can added
arbitrary strings into my
definition.
Thanks,
Micah Villmow
Systems Engineer
Adva...
2009 Dec 31
1
[PATCH] Autogenerate uureg opcode macros
...v = ureg_DECL_loop(ureg)
@@ -88,6 +88,41 @@ static inline struct ureg_src _src(const struct ureg_src& src) {return src;}
#define _zy(v) _swz(v, Z, Y, Z, Y)
#define _zw(v) _swz(v, Z, W, Z, W)
+#define _ind(r, a) ureg_src_indirect(_src(r), _src(a))
+#define _abs(x) ureg_abs(_src(x))
+#define _neg(x) ureg_negate(_src(x))
+#define _undef ureg_src_undef()
+#define _is_undef(v) ureg_src_is_undef(_src(v))
+
+#define _X(v) ureg_writemask((v), TGSI_WRITEMASK_X)
+#define _Y(v) ureg_writemask((v), TGSI_WRITEMASK_Y)
+#define _Z(v) ureg_writemask((v), TGSI_WRITEMASK_Z)
+#define _W(v) ureg_writemask((v...