OmniSciDB  c07336695a
FixedWidthReal Class Reference

#include <Codec.h>

+ Inheritance diagram for FixedWidthReal:
+ Collaboration diagram for FixedWidthReal:

Public Member Functions

 FixedWidthReal (const bool is_double)
 
llvm::Instruction * codegenDecode (llvm::Value *byte_stream, llvm::Value *pos, llvm::Module *module) const override
 
- Public Member Functions inherited from Decoder
virtual ~Decoder ()
 

Private Attributes

const bool is_double_
 

Detailed Description

Definition at line 68 of file Codec.h.

Constructor & Destructor Documentation

◆ FixedWidthReal()

FixedWidthReal::FixedWidthReal ( const bool  is_double)

Definition at line 74 of file Codec.cpp.

74 : is_double_(is_double) {}
const bool is_double_
Definition: Codec.h:76

Member Function Documentation

◆ codegenDecode()

llvm::Instruction * FixedWidthReal::codegenDecode ( llvm::Value *  byte_stream,
llvm::Value *  pos,
llvm::Module *  module 
) const
overridevirtual

Implements Decoder.

Definition at line 76 of file Codec.cpp.

References run-benchmark-import::args, CHECK, and is_double_.

78  {
79  auto f = module->getFunction(is_double_ ? "fixed_width_double_decode"
80  : "fixed_width_float_decode");
81  CHECK(f);
82  llvm::Value* args[] = {byte_stream, pos};
83  return llvm::CallInst::Create(f, args);
84 }
const bool is_double_
Definition: Codec.h:76
#define CHECK(condition)
Definition: Logger.h:187

Member Data Documentation

◆ is_double_

const bool FixedWidthReal::is_double_
private

Definition at line 76 of file Codec.h.

Referenced by codegenDecode().


The documentation for this class was generated from the following files: