aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
diff options
context:
space:
mode:
authorJaden Angella <ajaden@google.com>2025-07-18 10:15:05 -0700
committerGitHub <noreply@github.com>2025-07-18 10:15:05 -0700
commit7fd91bb6e89be39a130e04058a01d41ae5d600cb (patch)
tree05d102b198fe908286ada3210fcda144c87bc860 /llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
parentff225b5d88647448be8bbba54aaac3977a5485b5 (diff)
downloadllvm-7fd91bb6e89be39a130e04058a01d41ae5d600cb.zip
llvm-7fd91bb6e89be39a130e04058a01d41ae5d600cb.tar.gz
llvm-7fd91bb6e89be39a130e04058a01d41ae5d600cb.tar.bz2
[mlir][EmitC]Expand the MemRefToEmitC pass - Adding scalars (#148055)
This aims to expand the the MemRefToEmitC pass so that it can accept global scalars. From: ``` memref.global "private" constant @__constant_xi32 : memref<i32> = dense<-1> func.func @globals() { memref.get_global @__constant_xi32 : memref<i32> } ``` To: ``` emitc.global static const @__constant_xi32 : i32 = -1 emitc.func @globals() { %0 = get_global @__constant_xi32 : !emitc.lvalue<i32> %1 = apply "&"(%0) : (!emitc.lvalue<i32>) -> !emitc.ptr<i32> return } ```
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions