Currently, CGOps.h and FIROps.h contain using namespace mlir;. Every
file that includes one of these header files (directly and transitively)
will have the MLIR namespace enabled. With name-clashes within
sub-projects (LLVM and MLIR, MLIR and Flang), this is not desired. Also,
it is not possible to "un-use" a namespace once it is "used". Instead,
we should try to limit using namespace to implementation files (i.e.
*.cpp).
This patch removes using namespace mlir; from header files and adjusts
other files accordingly. In header and TableGen files, extra namespace
qualifier is added when referring to symbols defined in MLIR. Similar
approach was used for source files that didn't require many changes.
Otherwise, using namespace mlir; is added.
it's probably mlir::dyn_cast here.