aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2023-10-25 09:42:28 +0200
committerGitHub <noreply@github.com>2023-10-25 09:42:28 +0200
commit8a1ce2d6c28fa04b446b9c78a6f4d9443aca4ef3 (patch)
treef9d569c7f704dc855eb329291c5f7cc4ad3b2cec /lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
parentbf3a981a7f5ee9074d974fa518461bdb2869710f (diff)
downloadllvm-8a1ce2d6c28fa04b446b9c78a6f4d9443aca4ef3.zip
llvm-8a1ce2d6c28fa04b446b9c78a6f4d9443aca4ef3.tar.gz
llvm-8a1ce2d6c28fa04b446b9c78a6f4d9443aca4ef3.tar.bz2
[flang][codegen] Update FIR codegen to use mlir.llvm opaque pointers (#69692)
!llvm.ptr<T> typed pointers are depreciated in MLIR LLVM dialects. Flang codegen still generated them and relied on mlir.llvm codegen to LLVM to turn them into opaque pointers. This patch update FIR codegen to directly emit and work with LLVM opaque pointers. Addresses https://github.com/llvm/llvm-project/issues/69303 - All places generating GEPs need to add an extra type argument with the base type (the T that was previously in the llvm.ptr<T> of the base). - llvm.alloca must also be provided the object type. In the process, I doscovered that we were shamelessly copying all the attribute from fir.alloca to the llvm.alloca, which makes no sense for the operand segments. The updated code that cannot take an attribute dictionnary in the llvm.alloca builder with opaque pointers only propagate the "pinned" and "bindc_name" attributes to help debugging the generated IR. - Updating all the places that rely on getting the llvm object type from lowered llvm.ptr<T> arguments to get it from a type conversion of the original fir types. - Updating all the places that were generating llvm.ptr<T> types to generate the opaque llvm.ptr type. - Updating all the codegen tests checking generated MLIR llvm dialect. Many tests are testing directly LLVM IR, and this change is a no-op for those (which is expected).
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp')
0 files changed, 0 insertions, 0 deletions