MLIR  20.0.0git
Functions
TypeConverter.cpp File Reference
#include "mlir/Conversion/LLVMCommon/TypeConverter.h"
#include "MemRefDescriptor.h"
#include "mlir/Conversion/LLVMCommon/MemRefBuilder.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/LLVMIR/LLVMTypes.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/Support/Threading.h"
#include <memory>
#include <mutex>
#include <optional>

Go to the source code of this file.

Functions

static void filterByValRefArgAttrs (FunctionOpInterface funcOp, SmallVectorImpl< std::optional< NamedAttribute >> &result)
 Returns the llvm.byval or llvm.byref attributes that are present in the function arguments. More...
 

Function Documentation

◆ filterByValRefArgAttrs()

static void filterByValRefArgAttrs ( FunctionOpInterface  funcOp,
SmallVectorImpl< std::optional< NamedAttribute >> &  result 
)
static

Returns the llvm.byval or llvm.byref attributes that are present in the function arguments.

Returns an empty container if none of these attributes are found in any of the arguments.

Definition at line 276 of file TypeConverter.cpp.

Referenced by mlir::LLVMTypeConverter::convertFunctionSignature().