This patch implements codegen for __managed__ variable attribute for HIP.
Diagnostics will be added later.
Paths
| Differential D94814
[HIP] Support `__managed__` attribute ClosedPublic Authored by yaxunl on Jan 15 2021, 11:45 AM.
Details
Summary This patch implements codegen for __managed__ variable attribute for HIP. Diagnostics will be added later.
Diff Detail
Event TimelineComment Actions Presumably, __managed__ variables would have to be memory-mapped into the host address space.
yaxunl added inline comments.
This revision is now accepted and ready to land.Jan 21 2021, 9:55 AM Comment Actions The attribute parts LGTM aside from some small nits.
yaxunl added inline comments. Closed by commit rG622eaa4a4cea: [HIP] Support __managed__ attribute (authored by yaxunl). · Explain WhyJan 22 2021, 8:47 AM This revision was automatically updated to reflect the committed changes. yaxunl marked 2 inline comments as done.
Revision Contents
Diff 318537 clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/CodeGen/CGCUDARuntime.h
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/AST/Inputs/cuda.h
clang/test/AST/ast-dump-managed-var.cu
clang/test/CodeGenCUDA/Inputs/cuda.h
clang/test/CodeGenCUDA/managed-var.cu
clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/SemaCUDA/Inputs/cuda.h
clang/test/SemaCUDA/bad-attributes.cu
clang/test/SemaCUDA/device-var-init.cu
clang/test/SemaCUDA/function-overload.cu
clang/test/SemaCUDA/managed-var.cu
clang/test/SemaCUDA/union-init.cu
llvm/include/llvm/IR/ReplaceConstant.h
llvm/lib/IR/CMakeLists.txt
llvm/lib/IR/ReplaceConstant.cpp
llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp
|