OperandWithDefaultOps question

Is it possible to use this operand class in an instruction that has a
pattern defined? If so, can you write it with anything besides a
ComplexPattern in the instruction's pattern DAG, to set it to a value?
Can you refer to it at all? Or would it be added to the MachineInstr
with the default value such that you could modify it later in the
backend?

If there is a non-ComplexPattern way to write this, can you provide an example?

Thanks,
Joe

Is it possible to use this operand class in an instruction that has a
pattern defined? If so, can you write it with anything besides a
ComplexPattern in the instruction's pattern DAG, to set it to a value?
Can you refer to it at all? Or would it be added to the MachineInstr
with the default value such that you could modify it later in the
backend?

You can use OperandWithDefaultOps in an instruction with a pattern.
Take a look at the R600 target it has a lot of instructions that use
this operand class.

It's been a while since I looked at this, but I don't think you can
reference a member of this operand class in the pattern, but you
should try it out to be sure.

-Tom

Thanks for the reply Tom. I saw the InOperandList references to this
op class (like negate / "NEG", for example), but I could see any cases
where you referred to it in the pattern. That's why I was curious.
Hope someone can clarify.