31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
ForType< APSInt >( []( auto&& lhs, auto&& rhs ) -> Value
{
return BuildComputedValue( GetValueType< APSInt >(),
Xor( lhs, rhs ) );
} ),
// runtime integer xor, defined to work for any two integers of same
// bit size but ignoring signedness difference.
ForType< CustomPattern< RTInteger, RTInteger::SizeIntegerPat > >(
[]( auto&& lhs, auto&& rhs ) -> Value
{
return BuildComputedValue( lhs.type(),
Xor( lhs, rhs ) );
} )
);
|
|
|
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
ForType< APSInt >( []( auto&& lhs, auto&& rhs ) -> Value
{
return BuildComputedValue( GetValueType< APSInt >(),
Xor( lhs, rhs ) );
} ),
// runtime integer xor, defined to work for any two integers of same
// bit size and signedness.
ForType< CustomPattern< RTInteger, RTInteger::Pattern > >(
[]( auto&& lhs, auto&& rhs ) -> Value
{
return BuildComputedValue( lhs.type(),
Xor( lhs, rhs ) );
} )
);
|