Home
last modified time | relevance | path

Searched refs:Rec (Results 1 – 25 of 217) sorted by relevance

123456789

/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/
DPredicateExpander.cpp87 for (const Record *Rec : Opcodes) { in expandCheckOpcode() local
93 expandCheckOpcode(OS, Rec); in expandCheckOpcode()
125 for (const Record *Rec : Sequence) { in expandPredicateSequence() local
130 expandPredicate(OS, Rec); in expandPredicateSequence()
180 const Record *Rec) { in expandPredicate() argument
186 if (Rec->isSubClassOf("MCTrue")) { in expandPredicate()
192 if (Rec->isSubClassOf("MCFalse")) { in expandPredicate()
198 if (Rec->isSubClassOf("CheckNot")) { in expandPredicate()
200 expandPredicate(OS, Rec->getValueAsDef("Pred")); in expandPredicate()
205 if (Rec->isSubClassOf("CheckIsRegOperand")) in expandPredicate()
[all …]
DRISCVCompressInstEmitter.cpp107 void addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Inst,
113 void createDagOperandMapping(Record *Rec, StringMap<unsigned> &SourceOperands,
118 void createInstOperandMapping(Record *Rec, DagInit *SourceDag,
183 Record *Rec, DagInit *Dag, CodeGenInstruction &Inst, in addDagOperandMapping() argument
203 if (!validateRegister(DI->getDef(), Inst.Operands[i].Rec)) in addDagOperandMapping()
204 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
208 Inst.Operands[i].Rec->getName() + "'"); in addDagOperandMapping()
217 if (!validateTypes(DI->getDef(), Inst.Operands[i].Rec, IsSourceInst)) in addDagOperandMapping()
218 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
223 Inst.Operands[i].Rec->getName() + in addDagOperandMapping()
[all …]
DPseudoLoweringEmitter.cpp55 unsigned addDagOperandMapping(Record *Rec, DagInit *Dag,
74 addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Insn, in addDagOperandMapping() argument
93 if (DI->getDef() != Insn.Operands[BaseIdx + i].Rec) in addDagOperandMapping()
94 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
97 Insn.Operands[BaseIdx + i].Rec->getName() + "'"); in addDagOperandMapping()
112 addDagOperandMapping(Rec, SubDag, Insn, OperandMap, BaseIdx + i); in addDagOperandMapping()
122 void PseudoLoweringEmitter::evaluateExpansion(Record *Rec) { in evaluateExpansion() argument
123 LLVM_DEBUG(dbgs() << "Pseudo definition: " << Rec->getName() << "\n"); in evaluateExpansion()
127 DagInit *Dag = Rec->getValueAsDag("ResultInst"); in evaluateExpansion()
133 PrintFatalError(Rec->getLoc(), Rec->getName() + in evaluateExpansion()
[all …]
DX86FoldTablesEmitter.cpp177 return OpIn.Rec->getName() == "RST"; in hasRSTRegClass()
184 return OpIn.Rec->getName() == "ptr_rc_tailcall"; in hasPtrTailcallRegClass()
278 static inline bool isRegisterOperand(const Record *Rec) { in isRegisterOperand() argument
279 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand()
280 Rec->isSubClassOf("RegisterOperand") || in isRegisterOperand()
281 Rec->isSubClassOf("PointerLikeRegClass"); in isRegisterOperand()
284 static inline bool isMemoryOperand(const Record *Rec) { in isMemoryOperand() argument
285 return Rec->isSubClassOf("Operand") && in isMemoryOperand()
286 Rec->getValueAsString("OperandType") == "OPERAND_MEMORY"; in isMemoryOperand()
289 static inline bool isImmediateOperand(const Record *Rec) { in isImmediateOperand() argument
[all …]
DCodeGenInstruction.cpp69 Record *Rec = Arg->getDef(); in CGIOperandList() local
76 if (Rec->isSubClassOf("RegisterOperand")) { in CGIOperandList()
77 PrintMethod = Rec->getValueAsString("PrintMethod"); in CGIOperandList()
78 OperandType = Rec->getValueAsString("OperandType"); in CGIOperandList()
79 OperandNamespace = Rec->getValueAsString("OperandNamespace"); in CGIOperandList()
80 EncoderMethod = Rec->getValueAsString("EncoderMethod"); in CGIOperandList()
81 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList()
82 PrintMethod = Rec->getValueAsString("PrintMethod"); in CGIOperandList()
83 OperandType = Rec->getValueAsString("OperandType"); in CGIOperandList()
84 OperandNamespace = Rec->getValueAsString("OperandNamespace"); in CGIOperandList()
[all …]
DX86EVEX2VEXTablesEmitter.cpp141 Record *OpRec1 = EVEXInst->Operands[i].Rec; in operator ()()
142 Record *OpRec2 = VEXInst->Operands[i].Rec; in operator ()()
163 static inline bool isRegisterOperand(const Record *Rec) { in isRegisterOperand() argument
164 return Rec->isSubClassOf("RegisterClass") || in isRegisterOperand()
165 Rec->isSubClassOf("RegisterOperand"); in isRegisterOperand()
168 static inline bool isMemoryOperand(const Record *Rec) { in isMemoryOperand() argument
169 return Rec->isSubClassOf("Operand") && in isMemoryOperand()
170 Rec->getValueAsString("OperandType") == "OPERAND_MEMORY"; in isMemoryOperand()
173 static inline bool isImmediateOperand(const Record *Rec) { in isImmediateOperand() argument
174 return Rec->isSubClassOf("Operand") && in isImmediateOperand()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/
DTpiHashing.cpp28 static uint32_t getHashForUdt(const TagRecord &Rec, in getHashForUdt() argument
30 ClassOptions Opts = Rec.getOptions(); in getHashForUdt()
34 bool IsAnon = HasUniqueName && isAnonymous(Rec.getName()); in getHashForUdt()
37 return hashStringV1(Rec.getName()); in getHashForUdt()
39 return hashStringV1(Rec.getUniqueName()); in getHashForUdt()
44 static Expected<uint32_t> getHashForUdt(const CVType &Rec) { in getHashForUdt() argument
46 if (auto E = TypeDeserializer::deserializeAs(const_cast<CVType &>(Rec), in getHashForUdt()
49 return getHashForUdt(Deserialized, Rec.data()); in getHashForUdt()
53 static Expected<uint32_t> getSourceLineHash(const CVType &Rec) { in getSourceLineHash() argument
55 if (auto E = TypeDeserializer::deserializeAs(const_cast<CVType &>(Rec), in getSourceLineHash()
[all …]
/external/skia/src/utils/
DSkMetaData.cpp47 Rec* rec = fRec; in reset()
55 Rec* next = rec->fNext; in reset()
56 Rec::Free(rec); in reset()
66 const Rec* rec = src.fRec; in operator =()
121 Rec* rec = Rec::Alloc(sizeof(Rec) + dataSize * count + len + 1); in set()
148 const Rec* rec = this->find(name, kS32_Type); in findS32()
161 const Rec* rec = this->find(name, kScalar_Type); in findScalar()
174 const Rec* rec = this->find(name, kScalar_Type); in findScalars()
187 const Rec* rec = this->find(name, kPtr_Type); in findPtr()
204 const Rec* rec = this->find(name, kString_Type); in findString()
[all …]
/external/skqp/src/core/
DSkMetaData.cpp47 Rec* rec = fRec; in reset()
55 Rec* next = rec->fNext; in reset()
56 Rec::Free(rec); in reset()
66 const Rec* rec = src.fRec; in operator =()
121 Rec* rec = Rec::Alloc(sizeof(Rec) + dataSize * count + len + 1); in set()
148 const Rec* rec = this->find(name, kS32_Type); in findS32()
161 const Rec* rec = this->find(name, kScalar_Type); in findScalar()
174 const Rec* rec = this->find(name, kScalar_Type); in findScalars()
187 const Rec* rec = this->find(name, kPtr_Type); in findPtr()
204 const Rec* rec = this->find(name, kString_Type); in findString()
[all …]
DSkResourceCache.h74 struct Rec { struct
77 Rec() {} in Rec() function
78 virtual ~Rec() {} in ~Rec() argument
106 Rec* fNext; argument
107 Rec* fPrev; argument
118 typedef const Rec* ID; argument
130 typedef bool (*FindVisitor)(const Rec&, void* context);
153 static void Add(Rec*, void* payload = nullptr);
155 typedef void (*Visitor)(const Rec&, void* context);
220 void add(Rec*, void* payload = nullptr);
[all …]
DSkResourceCache.cpp68 static const SkResourceCache::Key& GetKey(const SkResourceCache::Rec* rec) { in GetKey()
75 public SkTHashTable<SkResourceCache::Rec*, SkResourceCache::Key, HashTraits> {};
104 Rec* rec = fHead; in ~SkResourceCache()
106 Rec* next = rec->fNext; in ~SkResourceCache()
119 Rec* rec = *found; in find()
143 void SkResourceCache::add(Rec* rec, void* payload) { in add()
148 if (Rec** preexisting = fHash->find(rec->getKey())) { in add()
149 Rec* prev = *preexisting; in add()
177 void SkResourceCache::remove(Rec* rec) { in remove()
213 Rec* rec = fTail; in purgeAsNeeded()
[all …]
DSkBitmapCache.cpp63 class SkBitmapCache::Rec : public SkResourceCache::Rec { class in SkBitmapCache
65 Rec(const SkBitmapCacheDesc& desc, const SkImageInfo& info, size_t rowBytes, in Rec() function in SkBitmapCache::Rec
80 ~Rec() override { in ~Rec()
107 Rec* rec = static_cast<Rec*>(ctx); in ReleaseProc()
149 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextBitmap) { in Finder()
150 Rec* rec = (Rec*)&baseRec; in Finder()
174 void SkBitmapCache::PrivateDeleteRec(Rec* rec) { delete rec; } in PrivateDeleteRec()
201 return RecPtr(new Rec(desc, info, rb, std::move(dm), block)); in Alloc()
210 return SkResourceCache::Find(BitmapKey(desc), SkBitmapCache::Rec::Finder, result); in Find()
232 struct MipMapRec : public SkResourceCache::Rec {
[all …]
/external/llvm/lib/DebugInfo/PDB/Raw/
DTpiStream.cpp68 template <typename T> static bool isAnonymous(T &Rec) { in isAnonymous() argument
69 StringRef Name = Rec.getName(); in isAnonymous()
76 static uint32_t getTpiHash(T &Rec, const CVRecord<TypeLeafKind> &RawRec) { in getTpiHash() argument
77 auto Opts = static_cast<uint16_t>(Rec.getOptions()); in getTpiHash()
83 bool IsAnon = UniqueName && isAnonymous(Rec); in getTpiHash()
86 return hashStringV1(Rec.getName()); in getTpiHash()
88 return hashStringV1(Rec.getUniqueName()); in getTpiHash()
99 Error visitUdtSourceLine(UdtSourceLineRecord &Rec) override { in visitUdtSourceLine() argument
100 return verifySourceLine(Rec); in visitUdtSourceLine()
103 Error visitUdtModSourceLine(UdtModSourceLineRecord &Rec) override { in visitUdtModSourceLine() argument
[all …]
/external/skia/src/core/
DSkResourceCache.h74 struct Rec { struct
77 Rec() {} in Rec() function
78 virtual ~Rec() {} in ~Rec() argument
106 Rec* fNext; argument
107 Rec* fPrev; argument
118 typedef const Rec* ID; argument
130 typedef bool (*FindVisitor)(const Rec&, void* context);
153 static void Add(Rec*, void* payload = nullptr);
155 typedef void (*Visitor)(const Rec&, void* context);
220 void add(Rec*, void* payload = nullptr);
[all …]
DSkResourceCache.cpp68 static const SkResourceCache::Key& GetKey(const SkResourceCache::Rec* rec) { in GetKey()
75 public SkTHashTable<SkResourceCache::Rec*, SkResourceCache::Key, HashTraits> {};
104 Rec* rec = fHead; in ~SkResourceCache()
106 Rec* next = rec->fNext; in ~SkResourceCache()
119 Rec* rec = *found; in find()
143 void SkResourceCache::add(Rec* rec, void* payload) { in add()
148 if (Rec** preexisting = fHash->find(rec->getKey())) { in add()
149 Rec* prev = *preexisting; in add()
177 void SkResourceCache::remove(Rec* rec) { in remove()
213 Rec* rec = fTail; in purgeAsNeeded()
[all …]
DSkBitmapCache.cpp63 class SkBitmapCache::Rec : public SkResourceCache::Rec { class in SkBitmapCache
65 Rec(const SkBitmapCacheDesc& desc, const SkImageInfo& info, size_t rowBytes, in Rec() function in SkBitmapCache::Rec
80 ~Rec() override { in ~Rec()
107 Rec* rec = static_cast<Rec*>(ctx); in ReleaseProc()
149 static bool Finder(const SkResourceCache::Rec& baseRec, void* contextBitmap) { in Finder()
150 Rec* rec = (Rec*)&baseRec; in Finder()
174 void SkBitmapCache::PrivateDeleteRec(Rec* rec) { delete rec; } in PrivateDeleteRec()
201 return RecPtr(new Rec(desc, info, rb, std::move(dm), block)); in Alloc()
210 return SkResourceCache::Find(BitmapKey(desc), SkBitmapCache::Rec::Finder, result); in Find()
232 struct MipMapRec : public SkResourceCache::Rec {
[all …]
/external/swiftshader/third_party/LLVM/utils/TableGen/
DPseudoLoweringEmitter.cpp27 addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Insn, in addDagOperandMapping() argument
46 if (DI->getDef() != Insn.Operands[BaseIdx + i].Rec) in addDagOperandMapping()
47 throw TGError(Rec->getLoc(), in addDagOperandMapping()
50 Insn.Operands[BaseIdx + i].Rec->getName() + "'"); in addDagOperandMapping()
65 addDagOperandMapping(Rec, SubDag, Insn, OperandMap, BaseIdx + i); in addDagOperandMapping()
75 void PseudoLoweringEmitter::evaluateExpansion(Record *Rec) { in evaluateExpansion() argument
76 DEBUG(dbgs() << "Pseudo definition: " << Rec->getName() << "\n"); in evaluateExpansion()
80 DagInit *Dag = Rec->getValueAsDag("ResultInst"); in evaluateExpansion()
86 throw TGError(Rec->getLoc(), Rec->getName() + in evaluateExpansion()
90 throw TGError(Rec->getLoc(), "Pseudo result '" + Operator->getName() + in evaluateExpansion()
[all …]
DX86RecognizableInstr.cpp201 Rec = insn.TheDef; in RecognizableInstr()
202 Name = Rec->getName(); in RecognizableInstr()
205 if (!Rec->isSubClassOf("X86Inst")) { in RecognizableInstr()
210 Prefix = byteFromRec(Rec, "Prefix"); in RecognizableInstr()
211 Opcode = byteFromRec(Rec, "Opcode"); in RecognizableInstr()
212 Form = byteFromRec(Rec, "FormBits"); in RecognizableInstr()
213 SegOvr = byteFromRec(Rec, "SegOvrBits"); in RecognizableInstr()
215 HasOpSizePrefix = Rec->getValueAsBit("hasOpSizePrefix"); in RecognizableInstr()
216 HasREX_WPrefix = Rec->getValueAsBit("hasREX_WPrefix"); in RecognizableInstr()
217 HasVEXPrefix = Rec->getValueAsBit("hasVEXPrefix"); in RecognizableInstr()
[all …]
/external/llvm/utils/TableGen/
DPseudoLoweringEmitter.cpp55 unsigned addDagOperandMapping(Record *Rec, DagInit *Dag,
74 addDagOperandMapping(Record *Rec, DagInit *Dag, CodeGenInstruction &Insn, in addDagOperandMapping() argument
93 if (DI->getDef() != Insn.Operands[BaseIdx + i].Rec) in addDagOperandMapping()
94 PrintFatalError(Rec->getLoc(), in addDagOperandMapping()
97 Insn.Operands[BaseIdx + i].Rec->getName() + "'"); in addDagOperandMapping()
112 addDagOperandMapping(Rec, SubDag, Insn, OperandMap, BaseIdx + i); in addDagOperandMapping()
122 void PseudoLoweringEmitter::evaluateExpansion(Record *Rec) { in evaluateExpansion() argument
123 DEBUG(dbgs() << "Pseudo definition: " << Rec->getName() << "\n"); in evaluateExpansion()
127 DagInit *Dag = Rec->getValueAsDag("ResultInst"); in evaluateExpansion()
133 PrintFatalError(Rec->getLoc(), Rec->getName() + in evaluateExpansion()
[all …]
DCodeGenInstruction.cpp69 Record *Rec = Arg->getDef(); in CGIOperandList() local
76 if (Rec->isSubClassOf("RegisterOperand")) { in CGIOperandList()
77 PrintMethod = Rec->getValueAsString("PrintMethod"); in CGIOperandList()
78 OperandType = Rec->getValueAsString("OperandType"); in CGIOperandList()
79 OperandNamespace = Rec->getValueAsString("OperandNamespace"); in CGIOperandList()
80 } else if (Rec->isSubClassOf("Operand")) { in CGIOperandList()
81 PrintMethod = Rec->getValueAsString("PrintMethod"); in CGIOperandList()
82 OperandType = Rec->getValueAsString("OperandType"); in CGIOperandList()
83 OperandNamespace = Rec->getValueAsString("OperandNamespace"); in CGIOperandList()
85 EncoderMethod = Rec->getValueAsString("EncoderMethod"); in CGIOperandList()
[all …]
/external/skqp/src/gpu/
DGrWindowRectangles.h39 struct Rec;
41 const Rec* rec() const { return fCount <= kNumLocalWindows ? nullptr : fRec; } in rec()
46 Rec* fRec; // If fCount > kNumLocalWindows.
50 struct GrWindowRectangles::Rec : public GrNonAtomicRef<Rec> { struct
51 Rec(const SkIRect* windows, int numWindows) { in Rec() argument
55 Rec() = default;
88 result.fRec = new Rec(); in makeOffset()
105 fRec = new Rec(fLocalWindows, kNumLocalWindows); in addWindow()
108 fRec = new Rec(fRec->fData, fCount); in addWindow()
/external/skia/src/gpu/
DGrWindowRectangles.h39 struct Rec;
41 const Rec* rec() const { return fCount <= kNumLocalWindows ? nullptr : fRec; } in rec()
46 Rec* fRec; // If fCount > kNumLocalWindows.
50 struct GrWindowRectangles::Rec : public GrNonAtomicRef<Rec> { struct
51 Rec(const SkIRect* windows, int numWindows) { in Rec() function
55 Rec() = default;
88 result.fRec = new Rec(); in makeOffset()
105 fRec = new Rec(fLocalWindows, kNumLocalWindows); in addWindow()
108 fRec = new Rec(fRec->fData, fCount); in addWindow()
/external/skqp/src/effects/
DSkLayerDrawLooper.cpp37 Rec* rec = fRecs; in ~SkLayerDrawLooper()
39 Rec* next = rec->fNext; in ~SkLayerDrawLooper()
170 const Rec* rec = fRecs; in asABlurShadow()
218 Rec* oldRec = fRecs; in onMakeColorSpace()
219 Rec* newTopRec = new Rec(); in onMakeColorSpace()
224 Rec* prevNewRec = newTopRec; in onMakeColorSpace()
227 Rec* newRec = new Rec(); in onMakeColorSpace()
246 Rec* rec = fRecs; in flatten()
288 Rec* rec = fRecs; in ~Builder()
290 Rec* next = rec->fNext; in ~Builder()
[all …]
/external/skia/src/effects/
DSkLayerDrawLooper.cpp37 Rec* rec = fRecs; in ~SkLayerDrawLooper()
39 Rec* next = rec->fNext; in ~SkLayerDrawLooper()
170 const Rec* rec = fRecs; in asABlurShadow()
218 Rec* oldRec = fRecs; in onMakeColorSpace()
219 Rec* newTopRec = new Rec(); in onMakeColorSpace()
224 Rec* prevNewRec = newTopRec; in onMakeColorSpace()
227 Rec* newRec = new Rec(); in onMakeColorSpace()
246 Rec* rec = fRecs; in flatten()
288 Rec* rec = fRecs; in ~Builder()
290 Rec* next = rec->fNext; in ~Builder()
[all …]
/external/skqp/include/effects/
DSkLayerDrawLooper.h89 struct Rec { struct
90 Rec* fNext; argument
94 Rec* fRecs; argument
106 Rec* fCurrRec;
146 Rec* fRecs;
147 Rec* fTopRec;

123456789