summaryrefslogtreecommitdiffhomepage
path: root/ir/kaps/vector_t.h
blob: 88b9663729b7d8e1ac023d7e1d8cb431be093368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief   PBQP vector data types.
 * @date    02.10.2008
 * @author  Sebastian Buchwald
 */
#ifndef KAPS_VECTOR_T_H
#define KAPS_VECTOR_T_H

#include "pbqp_t.h"

typedef struct vec_elem_t vec_elem_t;

struct vec_elem_t {
	num data;
#if KAPS_ENABLE_VECTOR_NAMES
	const char *name;
#endif
};

typedef struct vector_t vector_t;

struct vector_t {
	unsigned   len;
	vec_elem_t entries[];
};

#endif