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

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

Changes towards separate compilation

File size: 1.3 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(llvm::Module * const module, unsigned archBitWidth, unsigned bitBlockWidth)
20    : IDISA_Builder(module, archBitWidth, bitBlockWidth, bitBlockWidth) {
21    }
22
23    virtual std::string getBuilderUniqueName() override;
24    Value * hsimd_signmask(unsigned fw, Value * a) override;
25    ~IDISA_SSE_Builder() {}
26
27};
28
29class IDISA_SSE2_Builder : public IDISA_SSE_Builder {
30public:
31 
32    IDISA_SSE2_Builder(llvm::Module * const module, unsigned archBitWidth, unsigned bitBlockWidth)
33    : IDISA_SSE_Builder(module, archBitWidth, bitBlockWidth) {
34    }
35
36    virtual std::string getBuilderUniqueName() override;
37    Value * hsimd_signmask(unsigned fw, Value * a) override;
38    Value * hsimd_packh(unsigned fw, Value * a, Value * b) override;
39    Value * hsimd_packl(unsigned fw, Value * a, Value * b) override;
40    std::pair<Value *, Value *> bitblock_advance(Value * a, Value * shiftin, unsigned shift) override;
41
42    ~IDISA_SSE2_Builder() {}
43
44};
45
46}
47
48#endif // IDISA_SSE_BUILDER_H
Note: See TracBrowser for help on using the repository browser.