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

References

include/llvm/IR/Operator.h
   43     return cast<ConstantExpr>(this)->getOpcode();
   52       return CE->getOpcode();
  106     return CE->getOpcode() == Instruction::Add ||
  107            CE->getOpcode() == Instruction::Sub ||
  108            CE->getOpcode() == Instruction::Mul ||
  109            CE->getOpcode() == Instruction::Shl;
  147     return isPossiblyExactOpcode(CE->getOpcode());
  377       Opcode = CE->getOpcode();
  413     return CE->getOpcode() == Opc;
include/llvm/IR/PatternMatch.h
  750       return CE->getOpcode() == Opcode &&
 1015       return this->isOpType(CE->getOpcode()) && L.match(CE->getOperand(0)) &&
lib/Analysis/CFLGraph.h
  185       return CE->getOpcode() != Instruction::ICmp &&
  186              CE->getOpcode() != Instruction::FCmp;
  510       switch (CE->getOpcode()) {
lib/Analysis/ConstantFolding.cpp
  302   if (CE->getOpcode() == Instruction::PtrToInt ||
  303       CE->getOpcode() == Instruction::BitCast)
  489     if (CE->getOpcode() == Instruction::IntToPtr &&
  637   if (CE->getOpcode() == Instruction::GetElementPtr) {
  647   if (CE->getOpcode() == Instruction::BitCast)
  853           if (CE && CE->getOpcode() == Instruction::Sub &&
  901     if (CE->getOpcode() == Instruction::IntToPtr) {
 1109     return ConstantFoldInstOperandsImpl(CE, CE->getOpcode(), Ops, DL, TLI);
 1218       if (CE0->getOpcode() == Instruction::IntToPtr) {
 1230       if (CE0->getOpcode() == Instruction::PtrToInt) {
 1241       if (CE0->getOpcode() == CE1->getOpcode()) {
 1241       if (CE0->getOpcode() == CE1->getOpcode()) {
 1242         if (CE0->getOpcode() == Instruction::IntToPtr) {
 1256         if (CE0->getOpcode() == Instruction::PtrToInt) {
 1270         CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) {
 1317       if (CE->getOpcode() == Instruction::IntToPtr) {
 1338       if (CE->getOpcode() == Instruction::PtrToInt) {
lib/Analysis/InstructionSimplify.cpp
 4904   if (LoadedCE->getOpcode() == Instruction::Trunc) {
 4910   if (LoadedCE->getOpcode() != Instruction::Sub)
 4914   if (!LoadedLHS || LoadedLHS->getOpcode() != Instruction::PtrToInt)
lib/Analysis/Lint.cpp
  703     if (Instruction::isCast(CE->getOpcode())) {
  704       if (CastInst::isNoopCast(Instruction::CastOps(CE->getOpcode()),
  708     } else if (CE->getOpcode() == Instruction::ExtractValue) {
lib/Analysis/MemoryBuiltins.cpp
  604     if (CE->getOpcode() == Instruction::IntToPtr)
  606     if (CE->getOpcode() == Instruction::GetElementPtr)
  899               cast<ConstantExpr>(V)->getOpcode() == Instruction::IntToPtr) ||
lib/Analysis/ScalarEvolution.cpp
  489     if (VCE->getOpcode() == Instruction::PtrToInt)
  491         if (CE->getOpcode() == Instruction::GetElementPtr &&
  506     if (VCE->getOpcode() == Instruction::PtrToInt)
  508         if (CE->getOpcode() == Instruction::GetElementPtr &&
  531     if (VCE->getOpcode() == Instruction::PtrToInt)
  533         if (CE->getOpcode() == Instruction::GetElementPtr &&
lib/Analysis/ScalarEvolutionExpander.cpp
  137       if ((CE->getOpcode() == Instruction::PtrToInt ||
  138            CE->getOpcode() == Instruction::IntToPtr) &&
lib/Analysis/ValueTracking.cpp
 2010       if (CE->getOpcode() == Instruction::IntToPtr ||
 2011           CE->getOpcode() == Instruction::PtrToInt)
 3244     if (CE->getOpcode() == Instruction::IntToPtr) {
lib/Bitcode/Reader/ValueList.cpp
   51            cast<ConstantExpr>(V)->getOpcode() == Instruction::UserOp1;
lib/Bitcode/Writer/BitcodeWriter.cpp
 2428       switch (CE->getOpcode()) {
 2430         if (Instruction::isCast(CE->getOpcode())) {
 2432           Record.push_back(getEncodedCastOpcode(CE->getOpcode()));
 2439           Record.push_back(getEncodedBinaryOpcode(CE->getOpcode()));
 2450         Record.push_back(getEncodedUnaryOpcode(CE->getOpcode()));
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1318       if (CE->getOpcode() == Instruction::BitCast)
 2185   switch (CE->getOpcode()) {
 2301     switch (CE->getOpcode()) {
 2719     if (CE->getOpcode() == Instruction::BitCast)
lib/CodeGen/CodeGenPrepare.cpp
 4352     if (matchOperationAddr(CE, CE->getOpcode(), Depth))
lib/CodeGen/GlobalISel/IRTranslator.cpp
 2149     switch(CE->getOpcode()) {
lib/CodeGen/SelectionDAG/FastISel.cpp
  965     if (C->getOpcode() == Instruction::IntToPtr) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1465       visit(CE->getOpcode(), *CE);
lib/ExecutionEngine/ExecutionEngine.cpp
  645     switch (CE->getOpcode()) {
  729                                    CE->getOpcode()==Instruction::FPToSI,
  797         switch (CE->getOpcode()) {
  812         switch (CE->getOpcode()) {
  827         switch (CE->getOpcode()) {
  846         switch (CE->getOpcode()) {
lib/ExecutionEngine/Interpreter/Execution.cpp
 2023   switch (CE->getOpcode()) {
 2072   switch (CE->getOpcode()) {
lib/IR/ConstantFold.cpp
   88   Instruction::CastOps firstOp = Instruction::CastOps(Op->getOpcode());
  236   switch (CE->getOpcode()) {
  544     } else if (CE->getOpcode() == Instruction::GetElementPtr &&
  636       if (CE->getOpcode() == Instruction::GetElementPtr &&
  775     if (TrueVal->getOpcode() == Instruction::Select)
  780     if (FalseVal->getOpcode() == Instruction::Select)
  805     if (CE->getOpcode() == Instruction::GetElementPtr) {
 1134         if (CE1->getOpcode() == Instruction::ZExt) {
 1144         if (CE1->getOpcode() == Instruction::PtrToInt &&
 1193         switch (CE1->getOpcode()) {
 1209         if (CE1->getOpcode() == Instruction::ZExt)  // Top bits known zero.
 1333     if (Instruction::isAssociative(Opcode) && CE1->getOpcode() == Opcode) {
 1335       if (!isa<ConstantExpr>(T) || cast<ConstantExpr>(T)->getOpcode() != Opcode)
 1483     switch (CE1->getOpcode()) {
 1629     switch (CE1->getOpcode()) {
 1649         if (CE1->getOpcode() == Instruction::ZExt) isSigned = false;
 1650         if (CE1->getOpcode() == Instruction::SExt) isSigned = true;
 1716         switch (CE2->getOpcode()) {
 2082       if (CE2->getOpcode() == Instruction::BitCast &&
 2092       if ((CE1->getOpcode() == Instruction::SExt &&
 2094           (CE1->getOpcode() == Instruction::ZExt &&
 2101           if (ConstantExpr::getCast(CE1->getOpcode(), C2Inverse,
 2219     if (CE->getOpcode() == Instruction::GetElementPtr) {
lib/IR/Constants.cpp
  443   switch (CE->getOpcode()) {
  521     if (CE->getOpcode() == Instruction::Sub) {
  524       if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt &&
  525           RHS->getOpcode() == Instruction::PtrToInt) {
 1177   return Instruction::isCast(getOpcode());
 1181   return getOpcode() == Instruction::ICmp || getOpcode() == Instruction::FCmp;
 1181   return getOpcode() == Instruction::ICmp || getOpcode() == Instruction::FCmp;
 1185   if (getOpcode() != Instruction::GetElementPtr) return false;
 1207   return getOpcode() == Instruction::ExtractValue ||
 1208          getOpcode() == Instruction::InsertValue;
 1246   switch (getOpcode()) {
 1260     return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced);
 1289     return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData,
 2405   return Instruction::getOpcodeName(getOpcode());
 2989   switch (getOpcode()) {
 3003     return CastInst::Create((Instruction::CastOps)getOpcode(),
 3028     return CmpInst::Create((Instruction::OtherOps)getOpcode(),
 3031     return UnaryOperator::Create((Instruction::UnaryOps)getOpcode(), Ops[0]);
 3035       BinaryOperator::Create((Instruction::BinaryOps)getOpcode(),
lib/IR/ConstantsContext.h
  193     return CE->getOpcode() == Instruction::ExtractValue;
  225     return CE->getOpcode() == Instruction::InsertValue;
  258     return CE->getOpcode() == Instruction::GetElementPtr;
  287     return CE->getOpcode() == Instruction::ICmp ||
  288            CE->getOpcode() == Instruction::FCmp;
  480       : Opcode(CE->getOpcode()),
  488       : Opcode(CE->getOpcode()),
  506     if (Opcode != CE->getOpcode())
lib/IR/Core.cpp
 1456   return map_to_llvmopcode(unwrap<ConstantExpr>(ConstantVal)->getOpcode());
 2739     if (CE->getOpcode() == Instruction::ICmp)
 2748     if (CE->getOpcode() == Instruction::FCmp)
lib/IR/Globals.cpp
  442     switch (CE->getOpcode()) {
lib/IR/Instructions.cpp
 1884     if (CE->getOpcode() == Instruction::UserOp1)
lib/IR/Verifier.cpp
 1912   if (CE->getOpcode() == Instruction::BitCast)
 1917   if (CE->getOpcode() == Instruction::IntToPtr ||
 1918       CE->getOpcode() == Instruction::PtrToInt) {
 1919     auto *PtrTy = CE->getOpcode() == Instruction::IntToPtr
 1922     StringRef Msg = CE->getOpcode() == Instruction::IntToPtr
lib/Target/AArch64/AArch64FastISel.cpp
  592     Opcode = C->getOpcode();
  938     Opcode = C->getOpcode();
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
   97   if (CE->getOpcode() == Instruction::AddrSpaceCast) {
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  239   if (CE && CE->getOpcode() == Instruction::AddrSpaceCast) {
lib/Target/ARM/ARMFastISel.cpp
  726     Opcode = C->getOpcode();
lib/Target/Mips/MipsFastISel.cpp
  477     Opcode = C->getOpcode();
  558     Opcode = C->getOpcode();
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1825         if (Cexpr->getOpcode() == Instruction::PtrToInt) {
 1847         if (Cexpr->getOpcode() == Instruction::PtrToInt) {
 1995   switch (CE->getOpcode()) {
 2093     switch (CE->getOpcode()) {
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  256   unsigned Opcode = C->getOpcode();
  301       return Builder.CreateBinOp(Instruction::BinaryOps(C->getOpcode()),
  306       return Builder.CreateCast(Instruction::CastOps(C->getOpcode()),
lib/Target/PowerPC/PPCFastISel.cpp
  322     Opcode = C->getOpcode();
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  221     Opcode = C->getOpcode();
lib/Target/X86/X86FastISel.cpp
  843     Opcode = C->getOpcode();
 1022     Opcode = C->getOpcode();
lib/Target/XCore/XCoreLowerThreadLocal.cpp
   79   unsigned OpCode = CE->getOpcode();
lib/Transforms/IPO/GlobalOpt.cpp
  303       if (CE->getOpcode() == Instruction::GetElementPtr) {
  308       } else if ((CE->getOpcode() == Instruction::BitCast &&
  310                  CE->getOpcode() == Instruction::AddrSpaceCast) {
  327         if (Init && CE && CE->getOpcode() == Instruction::GetElementPtr)
  424         cast<ConstantExpr>(U)->getOpcode() != Instruction::GetElementPtr))
  555              cast<ConstantExpr>(GEP)->getOpcode()==Instruction::GetElementPtr)||
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
   43     if (CE->getOpcode() == Instruction::BitCast ||
   44         CE->getOpcode() == Instruction::AddrSpaceCast ||
   45         CE->getOpcode() == Instruction::GetElementPtr)
lib/Transforms/Scalar/InferAddressSpaces.cpp
  509   if (CE->getOpcode() == Instruction::AddrSpaceCast) {
  518   if (CE->getOpcode() == Instruction::BitCast) {
  524   if (CE->getOpcode() == Instruction::Select) {
  567   if (CE->getOpcode() == Instruction::GetElementPtr) {
lib/Transforms/Utils/Evaluator.cpp
   85   switch (CE->getOpcode()) {
  143     if (CE->getOpcode() == Instruction::GetElementPtr &&
  166     } else if (CE->getOpcode() == Instruction::BitCast &&
  232     switch (CE->getOpcode()) {
  276   if (!CE || CE->getOpcode() != Instruction::BitCast ||
  313   if (!RV || !CE || CE->getOpcode() != Instruction::BitCast)
  365         if (CE->getOpcode() == Instruction::BitCast) {
lib/Transforms/Utils/SimplifyCFG.cpp
  425     if (CE->getOpcode() == Instruction::IntToPtr)
tools/clang/lib/CodeGen/CGCall.cpp
 4242       if (CE->getOpcode() == llvm::Instruction::BitCast)
tools/clang/lib/CodeGen/CGException.cpp
  292       if (CE->getOpcode() != llvm::Instruction::BitCast) return false;
tools/clang/lib/CodeGen/CodeGenModule.cpp
  243         assert(CE->getOpcode() == llvm::Instruction::BitCast ||
  244                CE->getOpcode() == llvm::Instruction::GetElementPtr);
 4272       if (bitcast->getOpcode() == llvm::Instruction::BitCast)
tools/lldb/source/Expression/IRInterpreter.cpp
  259         switch (constant_expr->getOpcode()) {
  462       switch (constant_expr->getOpcode()) {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  456       switch (const_expr->getOpcode()) {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  649       if (nsstring_expr->getOpcode() == Instruction::GetElementPtr) {
  652       } else if (nsstring_expr->getOpcode() == Instruction::BitCast) {
  802       osr_initializer_expr->getOpcode() != Instruction::GetElementPtr)
  960       ocr_initializer_expr->getOpcode() != Instruction::BitCast)
 1191     switch (constant_expr->getOpcode()) {
 1485     if (CE->getOpcode() != Instruction::BitCast)
 1555         switch (constant_expr->getOpcode()) {
tools/llvm-diff/DifferenceEngine.cpp
  429     if (L->getOpcode() != R->getOpcode())
  429     if (L->getOpcode() != R->getOpcode())
  432     switch (L->getOpcode()) {
unittests/IR/ConstantsTest.cpp
  475   ASSERT_EQ(cast<ConstantExpr>(C)->getOpcode(), Instruction::BitCast);