#include <Codec.h>
Definition at line 79 of file Codec.h.
FixedWidthSmallDate::FixedWidthSmallDate |
( |
const size_t |
byte_width | ) |
|
llvm::Instruction * FixedWidthSmallDate::codegenDecode |
( |
llvm::Value * |
byte_stream, |
|
|
llvm::Value * |
pos, |
|
|
llvm::Module * |
llvm_module |
|
) |
| const |
|
overridevirtual |
Implements Decoder.
Definition at line 89 of file Codec.cpp.
References run_benchmark_import::args, byte_width_, CHECK, f(), null_val_, and ret_null_val_.
92 auto& context = llvm_module->getContext();
93 auto f = llvm_module->getFunction(
"fixed_width_small_date_decode");
95 llvm::Value*
args[] = {
97 llvm::ConstantInt::get(llvm::Type::getInt32Ty(context),
byte_width_),
98 llvm::ConstantInt::get(llvm::Type::getInt32Ty(context),
null_val_),
99 llvm::ConstantInt::get(llvm::Type::getInt64Ty(context),
ret_null_val_),
101 return llvm::CallInst::Create(
f, args);
static constexpr int64_t ret_null_val_
torch::Tensor f(torch::Tensor x, torch::Tensor W_target, torch::Tensor b_target)
const size_t FixedWidthSmallDate::byte_width_ |
|
private |
const int32_t FixedWidthSmallDate::null_val_ |
|
private |
constexpr int64_t FixedWidthSmallDate::ret_null_val_ = NULL_BIGINT |
|
staticprivate |
The documentation for this class was generated from the following files:
- /home/jenkins-slave/workspace/core-os-doxygen/QueryEngine/Codec.h
- /home/jenkins-slave/workspace/core-os-doxygen/QueryEngine/Codec.cpp