Added a virtual method isVectorClearMaskLegal to TLI. It is similar to