#include <ResultSetReductionInterpreter.h>
template<typename T >
static EvalValue ReductionInterpreter::MakeEvalValue |
( |
const T & |
val | ) |
|
|
inlinestatic |
Definition at line 39 of file ResultSetReductionInterpreter.h.
References ReductionInterpreter::EvalValue::double_val, ReductionInterpreter::EvalValue::float_val, ReductionInterpreter::EvalValue::int_val, and ReductionInterpreter::EvalValue::ptr.
Referenced by anonymous_namespace{ResultSetReductionInterpreter.cpp}::eval_constant(), anonymous_namespace{ResultSetReduction.cpp}::run_reduction_code(), ReductionInterpreterImpl::runBinaryOperator(), ReductionInterpreterImpl::runCast(), ReductionInterpreterImpl::runGetElementPtr(), ReductionInterpreterImpl::runICmp(), ReductionInterpreterImpl::runLoad(), and ReductionInterpreterImpl::runReturnEarly().
41 if constexpr (std::is_integral<T>::value) {
42 ret.int_val =
static_cast<int64_t
>(val);
43 }
else if constexpr (std::is_same<T, float>::value) {
45 }
else if constexpr (std::is_same<T, double>::value) {
47 }
else if constexpr (std::is_pointer<T>::value) {
static EvalValue ReductionInterpreter::run |
( |
const size_t |
execution_id, |
|
|
const Function * |
function, |
|
|
const std::vector< EvalValue > & |
inputs |
|
) |
| |
|
static |
static std::optional<EvalValue> ReductionInterpreter::run |
( |
const size_t |
execution_id, |
|
|
const std::vector< std::unique_ptr< Instruction >> & |
body, |
|
|
const std::vector< EvalValue > & |
vars |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: