source: icGREP/icgrep-devel/icgrep/IR_Gen/idisa_i64_builder.h

Last change on this file was 6107, checked in by cameron, 10 months ago

Fixes for NativeBitBlockWidth?

File size: 923 bytes
Line 
1#ifndef IDISA_I64_BUILDER_H
2#define IDISA_I64_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#include <IR_Gen/idisa_builder.h>
10
11namespace IDISA {
12    const unsigned I64_width = 64;
13
14class IDISA_I64_Builder : public virtual IDISA_Builder {
15public:
16    static const unsigned NativeBitBlockWidth = I64_width;
17 
18    IDISA_I64_Builder(llvm::LLVMContext & C, unsigned bitBlockWidth, unsigned laneWidth)
19    : IDISA_Builder(C, I64_width, bitBlockWidth, laneWidth) {
20
21    } 
22
23    virtual std::string getBuilderUniqueName() override;
24
25    llvm::Value * hsimd_packh(unsigned fw, llvm::Value * a, llvm::Value * b) override;
26    llvm::Value * hsimd_packl(unsigned fw, llvm::Value * a, llvm::Value * b) override;
27    ~IDISA_I64_Builder() {}
28
29};
30
31}
32
33#endif // IDISA_I64_BUILDER_H
Note: See TracBrowser for help on using the repository browser.