|
MLIR-AIE
|
Register and event database for a specific architecture. More...
#include "aie/Dialect/AIE/Util/AIERegisterDatabase.h"
Public Member Functions | |
| const RegisterInfo * | lookupRegister (llvm::StringRef name, llvm::StringRef module) const |
| Lookup register by name and module. | |
| std::optional< uint32_t > | lookupEvent (llvm::StringRef name, llvm::StringRef module) const |
| Lookup event by name and module. | |
| uint32_t | encodeFieldValue (const BitFieldInfo &field, uint32_t value) const |
| Encode a value for a specific bitfield. | |
Static Public Member Functions | |
| static std::unique_ptr< RegisterDatabase > | loadAIE2 () |
| Load database for AIE2 architecture. | |
Register and event database for a specific architecture.
Definition at line 62 of file AIERegisterDatabase.h.
| uint32_t RegisterDatabase::encodeFieldValue | ( | const BitFieldInfo & | field, |
| uint32_t | value | ||
| ) | const |
Encode a value for a specific bitfield.
Definition at line 275 of file AIERegisterDatabase.cpp.
References xilinx::AIE::BitFieldInfo::bit_start, and xilinx::AIE::BitFieldInfo::getWidth().
|
static |
Load database for AIE2 architecture.
Definition at line 70 of file AIERegisterDatabase.cpp.
Referenced by xilinx::AIE::AIE2TargetModel::loadRegisterDatabase().
| std::optional< uint32_t > RegisterDatabase::lookupEvent | ( | llvm::StringRef | name, |
| llvm::StringRef | module | ||
| ) | const |
Lookup event by name and module.
Definition at line 264 of file AIERegisterDatabase.cpp.
| const RegisterInfo * RegisterDatabase::lookupRegister | ( | llvm::StringRef | name, |
| llvm::StringRef | module | ||
| ) | const |
Lookup register by name and module.
Definition at line 256 of file AIERegisterDatabase.cpp.