Add assert in Operation->printAssembly to check improperly created Op's.
Add assert in Operation->printAssembly to check improperly created Op's.

We allow the name of an operation to be different from the name of the
'ConcreteType' op it was instantiated with. This can happen when you sub-class
an existing op and provide a getOperationName for it. Such a situation leads to
an assertion too deep and at a place seeminly unrelated, and typically when the
module is printed with the trace:

printOperation, printAssembly, Op::print, getOperand, dyn_cast<OperationStmt>,
isa. 'isa' will complain about being called on a null pointer, and the null
pointer actually comes from the getAs<> in printAssembly. This should have been
caught in printAssembly.

On another note, it is also weird that we allow setting the op's name to
something independent of the ConcreteType that op was instantiated with - so,
getAs<ConcreteType> will fail since ConcreteType::isClassFor won't succeed on
it.

PiperOrigin-RevId: 216580294

frreiss/tensorflow-fred,aam-at/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,annarev/tensorflow,aldian/tensorflow,yongtang/tensorflow,jhseu/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,aldian/tensorflow,sarvex/tensorflow,xzturn/tensorflow,jhseu/tensorflow,karllessard/tensorflow,xzturn/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,DavidNorman/tensorflow,Intel-Corporation/tensorflow,davidzchen/tensorflow,arborh/tensorflow,cxxgtxy/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,tensorflow/tensorflow,arborh/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,gunan/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,aldian/tensorflow,yongtang/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,xzturn/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,paolodedios/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,renyi533/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,xzturn/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,annarev/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,xzturn/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,petewarden/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,annarev/tensorflow,karllessard/tensorflow,sarvex/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,annarev/tensorflow,tensorflow/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,renyi533/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,aam-at/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,arborh/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,xzturn/tensorflow,sarvex/tensorflow,aldian/tensorflow,xzturn/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,cxxgtxy/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,cxxgtxy/tensorflow,arborh/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,arborh/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,xzturn/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,renyi533/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,annarev/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,ppwwyyxx/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,ppwwyyxx/tensorflow,xzturn/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,annarev/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow,annarev/tensorflow,jhseu/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,gunan/tensorflow,yongtang/tensorflow,gunan/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,yongtang/tensorflow,arborh/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model