MLIR-AIE 1.4.5.dev
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
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
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
XAie_DevInst * XAieDevInst
Definition target.h:24
XAie_Config * XAieConfig
Definition target.h:23
std::list< ext_mem_model_t > allocations
Definition target.h:26
XAie_MemInst MemInst
Definition target.h:19
uint64_t physicalAddr
Definition target.h:16
size_t size
Definition target.h:17
void * virtualAddr
Definition target.h:15