aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/SourceMgrTest.cpp
diff options
context:
space:
mode:
authorRazvan Lupusoru <razvan.lupusoru@gmail.com>2025-10-17 07:51:24 -0700
committerGitHub <noreply@github.com>2025-10-17 07:51:24 -0700
commit9ab16778c6e37e3d34e28b990bdb8839e5961805 (patch)
tree5395d50bef55cffe1ed84408d4e3a51f9806de09 /llvm/unittests/Support/SourceMgrTest.cpp
parent1e1ff21b0017464e1d39d34121020e61f1c4df60 (diff)
downloadllvm-9ab16778c6e37e3d34e28b990bdb8839e5961805.zip
llvm-9ab16778c6e37e3d34e28b990bdb8839e5961805.tar.gz
llvm-9ab16778c6e37e3d34e28b990bdb8839e5961805.tar.bz2
[flang][acc] Implement PointerLikeType API gen[Allocate/Free/Copy] (#163660)
Implements genAllocate, genFree, and genCopy for FIR pointer types (fir.ref, fir.ptr, fir.heap, fir.llvm_ptr) in the OpenACC PointerLikeType interface. - genAllocate: Uses fir.alloca for stack types, fir.allocmem for heap types. Returns null for dynamic/unknown types (unlimited polymorphic, dynamic arrays, dynamic character lengths, box types). - genFree: Generates fir.freemem for heap allocations. Returns false if original allocation cannot be found. - genCopy: Uses fir.load+fir.store for trivial types (scalars), hlfir.assign for non-trivial types (arrays, derived types, characters). Returns false for unsupported dynamic types and box types. Adds comprehensive MLIR tests covering various FIR types and edge cases.
Diffstat (limited to 'llvm/unittests/Support/SourceMgrTest.cpp')
0 files changed, 0 insertions, 0 deletions