refactor codes in CDSPass.cpp and also add support for function-like atomic operation...