Displaying 2 results from an estimated 2 matches for "bind_ty".
2008 Nov 09
2
[LLVMdev] m_Not Pattern Question
...the program fails during the "SelectInst::Create" phase.
The problem is because B is now a Constant with "-2" as its value, so
it has 0 operands. It appears that the m_Not() match is changing the
value of B during this call.
Is this intentional? This happens in the "bind_ty" template in
PatternMatch.h:
template<typename Class>
struct bind_ty {
Class *&VR;
bind_ty(Class *&V) : VR(V) {}
template<typename ITy>
bool match(ITy *V) {
if (Class *CV = dyn_cast<Class>(V)) {
VR = CV;
return true;
}
retu...
2008 Nov 09
0
[LLVMdev] m_Not Pattern Question
...the "SelectInst::Create" phase.
> The problem is because B is now a Constant with "-2" as its value, so
> it has 0 operands. It appears that the m_Not() match is changing the
> value of B during this call.
>
> Is this intentional? This happens in the "bind_ty" template in
> PatternMatch.h:
>
> template<typename Class>
> struct bind_ty {
> Class *&VR;
> bind_ty(Class *&V) : VR(V) {}
>
> template<typename ITy>
> bool match(ITy *V) {
> if (Class *CV = dyn_cast<Class>(V)) {
&g...