Codegen Cleanup

Replace NotOperator(mask) with (mask XOR MaskAllOn) to be more consistent with the rest of the code.