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

1 2 3 4 5

  /external/llvm/lib/Transforms/Scalar/
EarlyCSE.cpp 47 Instruction *Inst;
49 SimpleValue(Instruction *I) : Inst(I) {
50 assert((isSentinel() || canHandle(I)) && "Inst can't be handled!");
54 return Inst == DenseMapInfo<Instruction*>::getEmptyKey() ||
55 Inst == DenseMapInfo<Instruction*>::getTombstoneKey();
58 static bool canHandle(Instruction *Inst) {
60 if (CallInst *CI = dyn_cast<CallInst>(Inst))
62 return isa<CastInst>(Inst) || isa<BinaryOperator>(Inst) ||
63 isa<GetElementPtrInst>(Inst) || isa<CmpInst>(Inst) |
    [all...]
Sink.cpp 56 bool AllUsesDominatedByBlock(Instruction *Inst, BasicBlock *BB) const;
71 bool Sinking::AllUsesDominatedByBlock(Instruction *Inst,
77 for (Value::use_iterator I = Inst->use_begin(),
78 E = Inst->use_end(); I != E; ++I) {
134 Instruction *Inst = I; // The instruction to sink.
142 if (isa<DbgInfoIntrinsic>(Inst))
145 if (SinkInstruction(Inst, Stores))
154 static bool isSafeToMove(Instruction *Inst, AliasAnalysis *AA,
156 if (LoadInst *L = dyn_cast<LoadInst>(Inst)) {
166 if (Inst->mayWriteToMemory())
    [all...]
LoopRotation.cpp 229 Instruction *Inst = I++;
237 if (L->hasLoopInvariantOperands(Inst) &&
238 !Inst->mayReadFromMemory() && !Inst->mayWriteToMemory() &&
239 !isa<TerminatorInst>(Inst) && !isa<DbgInfoIntrinsic>(Inst)) {
240 Inst->moveBefore(LoopEntryBranch);
245 Instruction *C = Inst->clone();
259 ValueMap[Inst] = V;
262 C->setName(Inst->getName())
    [all...]
ADCE.cpp 71 if (Instruction* Inst = dyn_cast<Instruction>(OI))
72 if (alive.insert(Inst))
73 worklist.push_back(Inst);
DCE.cpp 10 // This file implements dead inst elimination and dead code elimination.
12 // Dead Inst Elimination performs a single pass over the function removing
43 Instruction *Inst = DI++;
44 if (isInstructionTriviallyDead(Inst)) {
45 Inst->eraseFromParent();
  /external/llvm/utils/TableGen/
InstrInfoEmitter.cpp 52 InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
55 for (unsigned i = 0, e = Inst.Operands.size(); i != e; ++i) {
64 DagInit *MIOI = Inst.Operands[i].MIOperandInfo;
68 OperandList.push_back(Inst.Operands[i]);
70 for (unsigned j = 0, e = Inst.Operands[i].MINumOperands; j != e; ++j) {
71 OperandList.push_back(Inst.Operands[i]);
101 if (Inst.Operands[i].Rec->isSubClassOf("PredicateOperand"))
106 if (Inst.Operands[i].Rec->isSubClassOf("OptionalDefOperand"))
113 Inst.Operands[i].Constraints[j];
126 assert(!Inst.Operands[i].OperandType.empty() && "Invalid operand type.")
    [all...]
InstrInfoEmitter.h 45 void emitRecord(const CodeGenInstruction &Inst, unsigned Num,
57 std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
  /external/llvm/lib/MC/MCDisassembler/
EDOperand.cpp 24 const EDInst &inst,
28 Inst(inst),
35 uint8_t operandType = inst.ThisInstInfo->operandTypes[opIndex];
59 uint8_t operandType = inst.ThisInstInfo->operandTypes[opIndex];
127 uint8_t operandType = Inst.ThisInstInfo->operandTypes[OpIndex];
138 result = Inst.Inst->getOperand(MCOpIndex).getImm();
142 unsigned reg = Inst.Inst->getOperand(MCOpIndex).getReg()
    [all...]
EDOperand.h 36 const EDInst &Inst;
46 /// @arg inst - The instruction containing this operand
47 /// @arg opIndex - The index of the operand in inst
50 const EDInst &inst,
  /external/clang/test/Parser/
cxx-default-args.cpp 10 typedef struct Inst {
  /external/llvm/lib/Analysis/
PHITransAddr.cpp 24 static bool CanPHITrans(Instruction *Inst) {
25 if (isa<PHINode>(Inst) ||
26 isa<GetElementPtrInst>(Inst))
29 if (isa<CastInst>(Inst) &&
30 Inst->isSafeToSpeculativelyExecute())
33 if (Inst->getOpcode() == Instruction::Add &&
34 isa<ConstantInt>(Inst->getOperand(1)))
117 Instruction *Inst = dyn_cast<Instruction>(Addr);
118 return Inst == 0 || CanPHITrans(Inst);
    [all...]
MemDepPrinter.cpp 75 Instruction *Inst = &*I;
77 if (!Inst->mayReadFromMemory() && !Inst->mayWriteToMemory())
80 MemDepResult Res = MDA.getDependency(Inst);
84 Deps[Inst].insert(std::make_pair(InstAndClobberFlag(Res.getInst(),
87 } else if (CallSite CS = cast<Value>(Inst)) {
91 DepSet &InstDeps = Deps[Inst];
104 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
109 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
113 } else if (VAArgInst *VI = dyn_cast<VAArgInst>(Inst)) {
    [all...]
MemoryDependenceAnalysis.cpp 100 /// 'Inst's set in ReverseMap. If the set becomes empty, remove Inst's entry.
104 Instruction *Inst, KeyTy Val) {
106 InstIt = ReverseMap.find(Inst);
119 AliasAnalysis::ModRefResult GetLocation(const Instruction *Inst,
122 if (const LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
131 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
140 if (const VAArgInst *V = dyn_cast<VAArgInst>(Inst)) {
145 if (const CallInst *CI = isFreeCall(Inst)) {
151 if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst))
    [all...]
Loads.cpp 179 Instruction *Inst = --ScanFrom;
180 if (isa<DbgInfoIntrinsic>(Inst))
191 if (LoadInst *LI = dyn_cast<LoadInst>(Inst))
195 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
220 if (Inst->mayWriteToMemory()) {
224 (AA->getModRefInfo(Inst, Ptr, AccessSize) & AliasAnalysis::Mod) == 0)
  /external/llvm/lib/Target/MBlaze/
MBlazeAsmBackend.cpp 61 bool MayNeedRelaxation(const MCInst &Inst) const;
63 void RelaxInstruction(const MCInst &Inst, MCInst &Res) const;
81 bool MBlazeAsmBackend::MayNeedRelaxation(const MCInst &Inst) const {
82 if (getRelaxedOpcode(Inst.getOpcode()) == Inst.getOpcode())
86 for (unsigned i = 0; i < Inst.getNumOperands(); ++i)
87 hasExprOrImm |= Inst.getOperand(i).isExpr();
92 void MBlazeAsmBackend::RelaxInstruction(const MCInst &Inst, MCInst &Res) const {
93 Res = Inst;
94 Res.setOpcode(getRelaxedOpcode(Inst.getOpcode()))
    [all...]
  /external/llvm/lib/Transforms/IPO/
LowerSetJmp.cpp 93 // The switch/value map holds a switch inst/call inst pair. The
94 // switch inst controls which handler (if any) gets called and the
106 void TransformLongJmpCall(CallInst* Inst);
107 void TransformSetJmpCall(CallInst* Inst);
259 void LowerSetJmp::TransformLongJmpCall(CallInst* Inst)
261 Type* SBPTy = Type::getInt8PtrTy(Inst->getContext());
266 // Inst's uses and doesn't get a name.
268 new BitCastInst(Inst->getArgOperand(0), SBPTy, "LJBuf", Inst);
    [all...]
  /external/llvm/include/llvm/MC/
MCCodeEmitter.h 34 /// EncodeInstruction - Encode the given \arg Inst to bytes on the output
36 virtual void EncodeInstruction(const MCInst &Inst, raw_ostream &OS,
MCObjectStreamer.h 36 virtual void EmitInstToData(const MCInst &Inst) = 0;
71 virtual void EmitInstruction(const MCInst &Inst);
72 virtual void EmitInstToFragment(const MCInst &Inst);
  /external/llvm/include/llvm/Target/
TargetAsmBackend.h 104 /// \param Inst - The instruction to test.
105 virtual bool MayNeedRelaxation(const MCInst &Inst) const = 0;
110 /// \param Inst - The instruction to relax, which may be the same as the
113 virtual void RelaxInstruction(const MCInst &Inst, MCInst &Res) const = 0;
  /external/llvm/lib/Transforms/Utils/
LCSSA.cpp 75 bool ProcessInstruction(Instruction *Inst,
178 bool LCSSA::ProcessInstruction(Instruction *Inst,
182 BasicBlock *InstBB = Inst->getParent();
184 for (Value::use_iterator UI = Inst->use_begin(), E = Inst->use_end();
204 BasicBlock *DomBB = Inst->getParent();
205 if (InvokeInst *Inv = dyn_cast<InvokeInst>(Inst))
213 SSAUpdate.Initialize(Inst->getType(), Inst->getName());
225 PHINode *PN = PHINode::Create(Inst->getType()
    [all...]
  /external/llvm/lib/MC/
MCObjectStreamer.cpp 154 void MCObjectStreamer::EmitInstruction(const MCInst &Inst) {
156 for (unsigned i = Inst.getNumOperands(); i--; )
157 if (Inst.getOperand(i).isExpr())
158 AddValueSymbols(Inst.getOperand(i).getExpr());
167 if (!getAssembler().getBackend().MayNeedRelaxation(Inst)) {
168 EmitInstToData(Inst);
176 getAssembler().getBackend().RelaxInstruction(Inst, Relaxed);
184 EmitInstToFragment(Inst);
187 void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) {
188 MCInstFragment *IF = new MCInstFragment(Inst, getCurrentSectionData())
    [all...]
  /external/llvm/lib/Target/ARM/AsmParser/
ARMAsmParser.cpp 123 bool CvtLdWriteBackRegAddrMode2(MCInst &Inst, unsigned Opcode,
125 bool CvtStWriteBackRegAddrMode2(MCInst &Inst, unsigned Opcode,
127 bool CvtLdWriteBackRegAddrMode3(MCInst &Inst, unsigned Opcode,
129 bool CvtStWriteBackRegAddrMode3(MCInst &Inst, unsigned Opcode,
540 void addExpr(MCInst &Inst, const MCExpr *Expr) const {
543 Inst.addOperand(MCOperand::CreateImm(0));
545 Inst.addOperand(MCOperand::CreateImm(CE->getValue()));
547 Inst.addOperand(MCOperand::CreateExpr(Expr));
550 void addCondCodeOperands(MCInst &Inst, unsigned N) const {
552 Inst.addOperand(MCOperand::CreateImm(unsigned(getCondCode())))
    [all...]
  /external/llvm/lib/Target/MBlaze/AsmParser/
MBlazeAsmParser.cpp 180 void addExpr(MCInst &Inst, const MCExpr *Expr) const {
183 Inst.addOperand(MCOperand::CreateImm(0));
185 Inst.addOperand(MCOperand::CreateImm(CE->getValue()));
187 Inst.addOperand(MCOperand::CreateExpr(Expr));
190 void addRegOperands(MCInst &Inst, unsigned N) const {
192 Inst.addOperand(MCOperand::CreateReg(getReg()));
195 void addImmOperands(MCInst &Inst, unsigned N) const {
197 addExpr(Inst, getImm());
200 void addFslOperands(MCInst &Inst, unsigned N) const {
202 addExpr(Inst, getFslImm())
    [all...]
  /frameworks/compile/libbcc/lib/Disassembler/
Disassembler.cpp 116 llvm::MCInst Inst;
118 if (Disassmbler->getInstruction(Inst, Size, *BufferMObj, Index,
125 IP->printInst(&Inst, OS);
  /external/llvm/include/llvm/Analysis/
MemoryDependenceAnalysis.h 92 static MemDepResult getDef(Instruction *Inst) {
93 assert(Inst && "Def requires inst");
94 return MemDepResult(PairTy(Inst, Def));
96 static MemDepResult getClobber(Instruction *Inst) {
97 assert(Inst && "Clobber requires inst");
98 return MemDepResult(PairTy(Inst, Clobber));
148 static MemDepResult getDirty(Instruction *Inst) {
149 return MemDepResult(PairTy(Inst, Invalid))
    [all...]

Completed in 485 milliseconds

1 2 3 4 5