MLIR-AIE
1.4.5.dev
runtime_lib
test_lib
target.h
Go to the documentation of this file.
1
//===- target.h ------------------------------------------------*- C++ -*-===//
2
//
3
// Copyright (C) 2023 Advanced Micro Devices, Inc.
4
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
//
6
//===----------------------------------------------------------------------===//
7
8
#ifndef AIE_TARGET_H
9
#define AIE_TARGET_H
10
11
#include <list>
12
#include <xaiengine.h>
13
14
struct
ext_mem_model_t
{
15
void
*
virtualAddr
;
16
uint64_t
physicalAddr
;
17
size_t
size
;
18
int
fd
;
// The file descriptor used during allocation
19
XAie_MemInst
MemInst
;
// LibXAIE handle if necessary. This should go away.
20
};
21
22
struct
aie_libxaie_ctx_t
{
23
XAie_Config *
XAieConfig
;
24
XAie_DevInst *
XAieDevInst
;
25
// Some device memory allocators need this to keep track of VA->PA mappings
26
std::list<ext_mem_model_t>
allocations
;
27
};
28
29
#endif
aie_libxaie_ctx_t
Definition
target.h:22
aie_libxaie_ctx_t::XAieDevInst
XAie_DevInst * XAieDevInst
Definition
target.h:24
aie_libxaie_ctx_t::XAieConfig
XAie_Config * XAieConfig
Definition
target.h:23
aie_libxaie_ctx_t::allocations
std::list< ext_mem_model_t > allocations
Definition
target.h:26
ext_mem_model_t
Definition
target.h:14
ext_mem_model_t::MemInst
XAie_MemInst MemInst
Definition
target.h:19
ext_mem_model_t::fd
int fd
Definition
target.h:18
ext_mem_model_t::physicalAddr
uint64_t physicalAddr
Definition
target.h:16
ext_mem_model_t::size
size_t size
Definition
target.h:17
ext_mem_model_t::virtualAddr
void * virtualAddr
Definition
target.h:15
Generated by
1.15.0