OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResultSetReductionInterpreterStubs.h File Reference
+ Include dependency graph for ResultSetReductionInterpreterStubs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StubGenerator
 

Functions

bool is_integer_type (const Type type)
 
bool is_pointer_type (const Type type)
 

Function Documentation

bool is_integer_type ( const Type  type)

Definition at line 86 of file ResultSetReductionInterpreterStubs.cpp.

References Int1, Int32, Int64, and Int8.

Referenced by StubGenerator::generateStub(), ReductionInterpreterImpl::runAlloca(), ReductionInterpreterImpl::runBinaryOperator(), ReductionInterpreterImpl::runCast(), ReductionInterpreterImpl::runFor(), ReductionInterpreterImpl::runICmp(), and ReductionInterpreterImpl::runMemCpy().

86  {
87  switch (type) {
88  case Type::Int1:
89  case Type::Int8:
90  case Type::Int32:
91  case Type::Int64: {
92  return true;
93  }
94  default: {
95  return false;
96  }
97  }
98 }

+ Here is the caller graph for this function:

bool is_pointer_type ( const Type  type)

Definition at line 100 of file ResultSetReductionInterpreterStubs.cpp.

References DoublePtr, FloatPtr, Int32Ptr, Int64Ptr, Int64PtrPtr, Int8Ptr, and VoidPtr.

Referenced by StubGenerator::generateStub(), ReductionInterpreterImpl::runCast(), ReductionInterpreterImpl::runLoad(), and ReductionInterpreterImpl::runMemCpy().

100  {
101  switch (type) {
102  case Type::Int8Ptr:
103  case Type::Int32Ptr:
104  case Type::Int64Ptr:
105  case Type::FloatPtr:
106  case Type::DoublePtr:
107  case Type::VoidPtr:
108  case Type::Int64PtrPtr: {
109  return true;
110  }
111  default: {
112  return false;
113  }
114  }
115 }

+ Here is the caller graph for this function: