source: icGREP/icgrep-devel/icgrep/IDISA/idisa_avx_builder.h @ 5217

Last change on this file since 5217 was 5217, checked in by nmedfort, 2 years ago

Merged PabloFunction? and PabloKernel? classes. Updated projects where necessary.

File size: 1.4 KB
Line 
1#ifndef IDISA_AVX_BUILDER_H
2#define IDISA_AVX_BUILDER_H
3
4/*
5 *  Copyright (c) 2015 International Characters.
6 *  This software is licensed to the public under the Open Software License 3.0.
7*/
8
9#include <IDISA/idisa_sse_builder.h>
10
11using namespace llvm;
12
13namespace IDISA {
14
15class IDISA_AVX_Builder : public IDISA_SSE2_Builder {
16public:
17   
18    IDISA_AVX_Builder(Module * m, unsigned archBitWidth, unsigned bitBlockWidth)
19    : IDISA_SSE2_Builder(m, archBitWidth, bitBlockWidth) {
20    }
21
22    Value * hsimd_signmask(unsigned fw, Value * a) override;
23    ~IDISA_AVX_Builder() {}
24
25};
26
27class IDISA_AVX2_Builder : public IDISA_AVX_Builder {
28public:
29   
30    IDISA_AVX2_Builder(Module * m, unsigned archBitWidth, unsigned bitBlockWidth)
31    : IDISA_AVX_Builder(m, archBitWidth, bitBlockWidth) {
32    }
33
34    Value * hsimd_packh(unsigned fw, Value * a, Value * b) override;
35    Value * hsimd_packl(unsigned fw, Value * a, Value * b) override;
36    Value * esimd_mergeh(unsigned fw, Value * a, Value * b) override;
37    Value * esimd_mergel(unsigned fw, Value * a, Value * b) override;
38    Value * hsimd_packh_in_lanes(unsigned lanes, unsigned fw, Value * a, Value * b) override;
39    Value * hsimd_packl_in_lanes(unsigned lanes, unsigned fw, Value * a, Value * b) override;
40    std::pair<Value *, Value *> bitblock_add_with_carry(Value * a, Value * b, Value * carryin) override;
41
42    ~IDISA_AVX2_Builder() {}
43};
44   
45}
46#endif // IDISA_AVX_BUILDER_H
Note: See TracBrowser for help on using the repository browser.