Lines Matching refs:CE

59   static bool classof(const ConstantExpr *CE) {  in classof()  argument
60 return Instruction::isCast(CE->getOpcode()); in classof()
86 static bool classof(const ConstantExpr *CE) { in classof() argument
87 return Instruction::isBinaryOp(CE->getOpcode()); in classof()
113 static bool classof(const ConstantExpr *CE) { in classof() argument
114 return CE->getOpcode() == Instruction::ExtractElement; in classof()
141 static bool classof(const ConstantExpr *CE) { in classof() argument
142 return CE->getOpcode() == Instruction::InsertElement; in classof()
177 static bool classof(const ConstantExpr *CE) { in classof() argument
178 return CE->getOpcode() == Instruction::ShuffleVector; in classof()
214 static bool classof(const ConstantExpr *CE) { in classof() argument
215 return CE->getOpcode() == Instruction::GetElementPtr; in classof()
385 static ArrayRef<int> getShuffleMaskIfValid(const ConstantExpr *CE) {
386 if (CE->getOpcode() == Instruction::ShuffleVector)
387 return CE->getShuffleMask();
391 static Type *getSourceElementTypeIfValid(const ConstantExpr *CE) {
392 if (auto *GEPCE = dyn_cast<GetElementPtrConstantExpr>(CE))
398 getInRangeIfValid(const ConstantExpr *CE) {
399 if (auto *GEPCE = dyn_cast<GetElementPtrConstantExpr>(CE))
414 ConstantExprKeyType(ArrayRef<Constant *> Operands, const ConstantExpr *CE)
415 : Opcode(CE->getOpcode()),
416 SubclassOptionalData(CE->getRawSubclassOptionalData()), Ops(Operands),
417 ShuffleMask(getShuffleMaskIfValid(CE)),
418 ExplicitTy(getSourceElementTypeIfValid(CE)),
419 InRange(getInRangeIfValid(CE)) {}
421 ConstantExprKeyType(const ConstantExpr *CE,
423 : Opcode(CE->getOpcode()),
424 SubclassOptionalData(CE->getRawSubclassOptionalData()),
425 ShuffleMask(getShuffleMaskIfValid(CE)),
426 ExplicitTy(getSourceElementTypeIfValid(CE)),
427 InRange(getInRangeIfValid(CE)) {
429 for (unsigned I = 0, E = CE->getNumOperands(); I != E; ++I)
430 Storage.push_back(CE->getOperand(I));
448 bool operator==(const ConstantExpr *CE) const {
449 if (Opcode != CE->getOpcode())
451 if (SubclassOptionalData != CE->getRawSubclassOptionalData())
453 if (Ops.size() != CE->getNumOperands())
456 if (Ops[I] != CE->getOperand(I))
458 if (ShuffleMask != getShuffleMaskIfValid(CE))
460 if (ExplicitTy != getSourceElementTypeIfValid(CE))
462 if (!rangesEqual(InRange, getInRangeIfValid(CE)))