HomeSort by relevance Sort by last modified time
    Searched refs:Inst (Results 26 - 50 of 118) sorted by null

12 3 4 5

  /external/llvm/lib/Target/X86/
X86MCInstLower.cpp 231 static void SimplifyShortImmForm(MCInst &Inst, unsigned Opcode) {
232 unsigned ImmOp = Inst.getNumOperands() - 1;
233 assert(Inst.getOperand(0).isReg() && Inst.getOperand(ImmOp).isImm() &&
234 ((Inst.getNumOperands() == 3 && Inst.getOperand(1).isReg() &&
235 Inst.getOperand(0).getReg() == Inst.getOperand(1).getReg()) ||
236 Inst.getNumOperands() == 2) && "Unexpected instruction!");
239 unsigned Reg = Inst.getOperand(0).getReg()
    [all...]
X86AsmBackend.cpp 101 bool MayNeedRelaxation(const MCInst &Inst) const;
103 void RelaxInstruction(const MCInst &Inst, MCInst &Res) const;
210 bool X86AsmBackend::MayNeedRelaxation(const MCInst &Inst) const {
212 if (getRelaxedOpcodeBranch(Inst.getOpcode()) != Inst.getOpcode())
219 if (getRelaxedOpcodeArith(Inst.getOpcode()) == Inst.getOpcode())
226 for (unsigned i = 0; i < Inst.getNumOperands(); ++i) {
227 const MCOperand &Op = Inst.getOperand(i);
242 void X86AsmBackend::RelaxInstruction(const MCInst &Inst, MCInst &Res) const
    [all...]
  /external/llvm/lib/Transforms/Scalar/
Reg2Mem.cpp 48 bool valueEscapes(const Instruction *Inst) const {
49 const BasicBlock *BB = Inst->getParent();
50 for (Value::const_use_iterator UI = Inst->use_begin(),E = Inst->use_end();
DeadStoreElimination.cpp 163 getLocForWrite(Instruction *Inst, AliasAnalysis &AA) {
164 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
167 if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(Inst)) {
178 IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst);
202 getLocForRead(Instruction *Inst, AliasAnalysis &AA) {
203 assert(hasMemoryWrite(Inst) && "Unknown instruction case");
207 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(Inst))
374 /// isPossibleSelfRead - If 'Inst' might be a self read (i.e. a noop copy of a
387 static bool isPossibleSelfRead(Instruction *Inst,
392 AliasAnalysis::Location InstReadLoc = getLocForRead(Inst, AA)
    [all...]
ObjCARC.cpp 498 static Value *GetObjCArg(Value *Inst) {
499 return StripPointerCastsAndObjCCalls(cast<CallInst>(Inst)->getArgOperand(0));
818 Instruction *Inst = &*I;
820 switch (GetBasicInstructionClass(Inst)) {
832 Inst->replaceAllUsesWith(cast<CallInst>(Inst)->getArgOperand(0));
    [all...]
TailDuplication.cpp 362 Instruction *Inst = BI++;
363 if (isInstructionTriviallyDead(Inst))
364 Inst->eraseFromParent();
365 else if (Value *V = SimplifyInstruction(Inst)) {
366 Inst->replaceAllUsesWith(V);
367 Inst->eraseFromParent();
  /external/clang/lib/Sema/
SemaTemplateInstantiate.cpp 180 ActiveTemplateInstantiation Inst;
181 Inst.Kind = ActiveTemplateInstantiation::TemplateInstantiation;
182 Inst.PointOfInstantiation = PointOfInstantiation;
183 Inst.Entity = reinterpret_cast<uintptr_t>(Entity);
184 Inst.TemplateArgs = 0;
185 Inst.NumTemplateArgs = 0;
186 Inst.InstantiationRange = InstantiationRange;
188 SemaRef.ActiveTemplateInstantiations.push_back(Inst);
205 ActiveTemplateInstantiation Inst;
206 Inst.Kin
    [all...]
  /external/llvm/lib/Analysis/
InstCount.cpp 31 STATISTIC(Num ## OPCODE ## Inst, "Number of " #OPCODE " insts");
44 void visit##OPCODE(CLASS &) { ++Num##OPCODE##Inst; ++TotalInsts; }
InlineCost.cpp 157 Instruction &Inst = cast<Instruction>(*U);
166 if (Inst.mayReadFromMemory() || Inst.mayHaveSideEffects() ||
167 isa<AllocaInst>(Inst))
171 for (unsigned i = 0, e = Inst.getNumOperands(); i != e; ++i)
172 if (!isa<Constant>(Inst.getOperand(i)) && Inst.getOperand(i) != V) {
183 Reduction += CountCodeReductionForConstant(&Inst);
334 Instruction &Inst = cast<Instruction>(*U);
343 if (Inst.mayReadFromMemory() || Inst.mayHaveSideEffects() |
    [all...]
  /external/llvm/lib/MC/
MCPureStreamer.cpp 27 virtual void EmitInstToFragment(const MCInst &Inst);
28 virtual void EmitInstToData(const MCInst &Inst);
191 void MCPureStreamer::EmitInstToFragment(const MCInst &Inst) {
192 MCInstFragment *IF = new MCInstFragment(Inst, getCurrentSectionData());
201 getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, Fixups);
208 void MCPureStreamer::EmitInstToData(const MCInst &Inst) {
214 getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, Fixups);
MCStreamer.cpp 397 MCWin64EHInstruction Inst(Win64EH::UOP_PushNonVol, Label, Register);
399 CurFrame->Instructions.push_back(Inst);
409 MCWin64EHInstruction Inst(Win64EH::UOP_SetFPReg, NULL, Register, Offset);
411 CurFrame->Instructions.push_back(Inst);
420 MCWin64EHInstruction Inst(Label, Size);
422 CurFrame->Instructions.push_back(Inst);
431 MCWin64EHInstruction Inst(
435 CurFrame->Instructions.push_back(Inst);
444 MCWin64EHInstruction Inst(
448 CurFrame->Instructions.push_back(Inst);
    [all...]
MCELFStreamer.h 99 virtual void EmitInstToFragment(const MCInst &Inst);
100 virtual void EmitInstToData(const MCInst &Inst);
  /external/llvm/lib/AsmParser/
LLParser.cpp 53 Instruction *Inst = I->first;
62 Inst->setMetadata(MDList[i].MDKind, NumberedMetadata[SlotNo]);
    [all...]
LLParser.h 258 Instruction *Inst);
319 bool ParseInstructionMetadata(Instruction *Inst, PerFunctionState *PFS);
338 int ParseInstruction(Instruction *&Inst, BasicBlock *BB,
342 bool ParseRet(Instruction *&Inst, BasicBlock *BB, PerFunctionState &PFS);
343 bool ParseBr(Instruction *&Inst, PerFunctionState &PFS);
344 bool ParseSwitch(Instruction *&Inst, PerFunctionState &PFS);
345 bool ParseIndirectBr(Instruction *&Inst, PerFunctionState &PFS);
346 bool ParseInvoke(Instruction *&Inst, PerFunctionState &PFS);
  /external/llvm/lib/Target/X86/AsmParser/
X86AsmParser.cpp 268 void addExpr(MCInst &Inst, const MCExpr *Expr) const {
271 Inst.addOperand(MCOperand::CreateImm(CE->getValue()));
273 Inst.addOperand(MCOperand::CreateExpr(Expr));
276 void addRegOperands(MCInst &Inst, unsigned N) const {
278 Inst.addOperand(MCOperand::CreateReg(getReg()));
281 void addImmOperands(MCInst &Inst, unsigned N) const {
283 addExpr(Inst, getImm());
286 void addMemOperands(MCInst &Inst, unsigned N) const {
288 Inst.addOperand(MCOperand::CreateReg(getMemBaseReg()));
289 Inst.addOperand(MCOperand::CreateImm(getMemScale()))
    [all...]
  /external/llvm/lib/MC/MCDisassembler/
EDInst.cpp 26 EDInst::EDInst(llvm::MCInst *inst,
31 Inst(inst),
52 delete Inst;
63 if (Disassembler.printInst(String, *Inst))
81 return Inst->getOpcode();
Disassembler.cpp 152 MCInst Inst;
155 if (!DisAsm->getInstruction(Inst, Size, MemoryObject, PC, /*REMOVE*/ nulls()))
160 IP->printInst(&Inst, OS);
EDInst.h 64 llvm::MCInst *Inst;
99 /// @arg inst - The MCInst, which will now be owned by this object
104 EDInst(llvm::MCInst *inst,
  /external/llvm/lib/Target/PowerPC/
PPCAsmBackend.cpp 59 bool MayNeedRelaxation(const MCInst &Inst) const {
64 void RelaxInstruction(const MCInst &Inst, MCInst &Res) const {
  /external/llvm/lib/Target/PTX/
PTXMCAsmStreamer.cpp 83 virtual void AddEncodingComment(const MCInst &Inst);
168 virtual void EmitInstruction(const MCInst &Inst);
496 void PTXMCAsmStreamer::AddEncodingComment(const MCInst &Inst) {}
498 void PTXMCAsmStreamer::EmitInstruction(const MCInst &Inst) {
503 AddEncodingComment(Inst);
507 Inst.dump_pretty(GetCommentOS(), &MAI, InstPrinter.get(), "\n ");
513 InstPrinter->printInst(&Inst, OS);
515 Inst.print(OS, &MAI);
  /external/llvm/lib/CodeGen/
SjLjEHPrepare.cpp 242 Instruction *Inst = II;
243 if (Inst->use_empty()) continue;
244 if (Inst->hasOneUse() &&
245 cast<Instruction>(Inst->use_back())->getParent() == BB &&
246 !isa<PHINode>(Inst->use_back())) continue;
250 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst))
256 for (Value::use_iterator UI = Inst->use_begin(), E = Inst->use_end();
265 LiveBBs.insert(Inst->getParent());
276 if (PN->getIncomingValue(i) == Inst)
    [all...]
  /external/llvm/lib/Transforms/Utils/
LowerInvoke.cpp 343 Instruction *Inst = II;
344 if (Inst->use_empty()) continue;
345 if (Inst->hasOneUse() &&
346 cast<Instruction>(Inst->use_back())->getParent() == BB &&
347 !isa<PHINode>(Inst->use_back())) continue;
351 if (AllocaInst *AI = dyn_cast<AllocaInst>(Inst))
357 for (Value::use_iterator UI = Inst->use_begin(), E = Inst->use_end();
371 LiveBBs.insert(Inst->getParent());
382 if (PN->getIncomingValue(i) == Inst)
    [all...]
LoopUnroll.cpp 377 Instruction *Inst = I++;
379 if (isInstructionTriviallyDead(Inst))
380 (*BB)->getInstList().erase(Inst);
381 else if (Value *V = SimplifyInstruction(Inst))
382 if (LI->replacementPreservesLCSSAForm(Inst, V)) {
383 Inst->replaceAllUsesWith(V);
384 (*BB)->getInstList().erase(Inst);
  /external/llvm/utils/TableGen/
AsmWriterEmitter.cpp 119 const AsmWriterInst *Inst = getAsmWriterInstByID(i);
120 if (Inst == 0) continue; // PHI, INLINEASM, PROLOG_LABEL, etc.
123 if (Inst->Operands.empty())
126 Command = " " + Inst->Operands[0].getCode() + "\n";
135 InstrsForCase[idx] += Inst->CGI->TheDef->getName();
142 InstrsForCase.push_back(Inst->CGI->TheDef->getName());
350 if (AsmWriterInst *Inst = getAsmWriterInstByID(i))
351 if (!Inst->Operands.empty()) {
353 assert(NumOps <= Inst->Operands.size() &&
355 Inst->Operands.erase(Inst->Operands.begin()
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstructionCombining.cpp 59 STATISTIC(NumDeadInst , "Number of dead inst eliminated");
    [all...]

Completed in 295 milliseconds

12 3 4 5