CIRCT
18.0.0git
|
#include "circt/Conversion/HWToLLVM.h"
#include "../PassDetail.h"
#include "circt/Dialect/HW/HWOps.h"
#include "circt/Support/LLVM.h"
#include "circt/Support/Namespace.h"
#include "mlir/Conversion/LLVMCommon/ConversionTarget.h"
#include "mlir/Conversion/LLVMCommon/Pattern.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/DialectConversion.h"
#include "llvm/ADT/TypeSwitch.h"
Go to the source code of this file.
Functions | |
static Value | zextByOne (Location loc, ConversionPatternRewriter &rewriter, Value value) |
Create a zext operation by one bit on the given value. More... | |
static Type | convertArrayType (hw::ArrayType type, LLVMTypeConverter &converter) |
static Type | convertStructType (hw::StructType type, LLVMTypeConverter &converter) |
|
static |
Definition at line 625 of file HWToLLVM.cpp.
References circt::calyx::direction::get().
|
static |
Definition at line 630 of file HWToLLVM.cpp.
|
static |
Create a zext operation by one bit on the given value.
This is useful when passing unsigned indexes to a GEP instruction, which treats indexes as signed values, to avoid unexpected "sign overflows".
Definition at line 70 of file HWToLLVM.cpp.
References circt::calyx::direction::get(), and value.