Implemented getCodeText(string attr) in llvm/cuda codegen and added python bindings for it - #52974 (#53664)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/53664
Test Plan: Imported from OSS
Reviewed By: bertmaher
Differential Revision: D26929204
Pulled By: huiguoo
fbshipit-source-id: 281fe6c25f4664636b29d51dba396056a222a9e7