Searched refs:CE (Results 1 – 2 of 2) sorted by relevance
184 const llvm::ConstantExpr *CE = (llvm::ConstantExpr*) C; in GetConstantValue() local185 const llvm::Constant *Op0 = CE->getOperand(0); in GetConstantValue()187 switch (CE->getOpcode()) { in GetConstantValue()190 llvm::SmallVector<llvm::Value*, 8> Indices(CE->op_begin() + 1, in GetConstantValue()191 CE->op_end()); in GetConstantValue()202 llvm::cast<llvm::IntegerType>(CE->getType())->getBitWidth(); in GetConstantValue()211 llvm::cast<llvm::IntegerType>(CE->getType())->getBitWidth(); in GetConstantValue()220 llvm::cast<llvm::IntegerType>(CE->getType())->getBitWidth(); in GetConstantValue()241 if (CE->getType()->isFloatTy()) in GetConstantValue()244 else if (CE->getType()->isDoubleTy()) in GetConstantValue()[all …]
911 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local912 switch (CE->getOpcode()) { in WriteConstants()914 if (Instruction::isCast(CE->getOpcode())) { in WriteConstants()916 Record.push_back(GetEncodedCastOpcode(CE->getOpcode())); in WriteConstants()921 assert(CE->getNumOperands() == 2 && "Unknown constant expr!"); in WriteConstants()923 Record.push_back(GetEncodedBinaryOpcode(CE->getOpcode())); in WriteConstants()926 uint64_t Flags = GetOptimizationFlags(CE); in WriteConstants()935 for (unsigned i = 0, e = CE->getNumOperands(); i != e; ++i) { in WriteConstants()979 Record.push_back(CE->getPredicate()); in WriteConstants()