OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 *llvm_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 ( 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

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

Implements Decoder.

Definition at line 76 of file Codec.cpp.

References run_benchmark_import::args, CHECK, f(), and is_double_.

78  {
79  auto f = llvm_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
torch::Tensor f(torch::Tensor x, torch::Tensor W_target, torch::Tensor b_target)
#define CHECK(condition)
Definition: Logger.h:291

+ Here is the call graph for this function:

Member Data Documentation

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: