reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/ExecutionEngine/ExecutionEngine.cpp
  596   if (isa<UndefValue>(C)) {
  598     switch (C->getType()->getTypeID()) {
  607       Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0);
  611       if(StructType *STy = dyn_cast<StructType>(C->getType())) {
  629       auto* VTy = cast<VectorType>(C->getType());
  643   if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
  889   switch (C->getType()->getTypeID()) {
  891     Result.FloatVal = cast<ConstantFP>(C)->getValueAPF().convertToFloat();
  894     Result.DoubleVal = cast<ConstantFP>(C)->getValueAPF().convertToDouble();
  899     Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt();
  902     Result.IntVal = cast<ConstantInt>(C)->getValue();
  905     while (auto *A = dyn_cast<GlobalAlias>(C)) {
  906       C = A->getAliasee();
  908     if (isa<ConstantPointerNull>(C))
  910     else if (const Function *F = dyn_cast<Function>(C))
  912     else if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(C))
  920     const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(C);
  921     const ConstantVector *CV = dyn_cast<ConstantVector>(C);
  922     const ConstantAggregateZero *CAZ = dyn_cast<ConstantAggregateZero>(C);
  928         auto* VTy = cast<VectorType>(C->getType());
 1015     OS << "ERROR: Constant unimplemented for type: " << *C->getType();