source: icGREP/icgrep-devel/icgrep/IR_Gen/idisa_sse_builder.h @ 5272

Last change on this file since 5272 was 5238, checked in by cameron, 3 years ago

IR_Gen subdirectory for all IR generation utility functions

File size: 1.2 KB
Line 
1#ifndef IDISA_SSE_BUILDER_H
2#define IDISA_SSE_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 *  icgrep is a trademark of International Characters.
8 */
9
10#include <IR_Gen/idisa_builder.h>
11
12using namespace llvm;
13
14namespace IDISA {
15
16class IDISA_SSE_Builder : public IDISA_Builder {
17public:
18 
19    IDISA_SSE_Builder(Module * m, unsigned archBitWidth, unsigned bitBlockWidth)
20    : IDISA_Builder(m, archBitWidth, bitBlockWidth, bitBlockWidth) {
21    }
22
23    Value * hsimd_signmask(unsigned fw, Value * a) override;
24    ~IDISA_SSE_Builder() {}
25
26};
27
28class IDISA_SSE2_Builder : public IDISA_SSE_Builder {
29public:
30 
31    IDISA_SSE2_Builder(Module * m, unsigned archBitWidth, unsigned bitBlockWidth)
32    : IDISA_SSE_Builder(m, archBitWidth, bitBlockWidth) {
33    }
34
35    Value * hsimd_signmask(unsigned fw, Value * a) override;
36    Value * hsimd_packh(unsigned fw, Value * a, Value * b) override;
37    Value * hsimd_packl(unsigned fw, Value * a, Value * b) override;
38    std::pair<Value *, Value *> bitblock_advance(Value * a, Value * shiftin, unsigned shift) override;
39
40    ~IDISA_SSE2_Builder() {}
41
42};
43
44}
45
46#endif // IDISA_SSE_BUILDER_H
Note: See TracBrowser for help on using the repository browser.