[flang-commits] [PATCH] D114104: [FIR] Convert fir.allocmem and fir.freemem operations to calls to malloc and free, respectively

Valentin Clement via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Dec 10 06:21:43 PST 2021


clementval added inline comments.


================
Comment at: flang/lib/Optimizer/CodeGen/CodeGen.cpp:41
 
 static mlir::Type getVoidPtrType(mlir::MLIRContext *context) {
   return mlir::LLVM::LLVMPointerType::get(mlir::IntegerType::get(context, 8));
----------------
kiranchandramohan wrote:
> @mehdi_amini Is "static inline" OK here, or is there any guidance that requires "static"?
There are lots of occurrences in the LLVM codebase so I would assumed it's fine. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114104/new/

https://reviews.llvm.org/D114104



More information about the flang-commits mailing list