Home
last modified time | relevance | path

Searched refs:asImpl (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/clang/include/clang/AST/
DAbstractBasicWriter.h123 using BasicWriterBase<Impl>::asImpl;
129 return asImpl(); in find()
134 Impl &writeObject() { return asImpl(); } in writeObject()
138 asImpl().writeUInt32(uint32_t(value)); in writeEnum()
143 asImpl().writeUInt32(array.size()); in writeArray()
145 WriteDispatcher<T>::write(asImpl(), elt); in writeArray()
151 WriteDispatcher<T>::write(asImpl(), PackOptionalValue<T>::pack(value)); in writeOptional()
155 asImpl().writeBool(value.isUnsigned()); in writeAPSInt()
156 asImpl().writeAPInt(value); in writeAPSInt()
160 asImpl().writeUInt32(value.getBitWidth()); in writeAPInt()
[all …]
DAbstractBasicReader.h125 using BasicReaderBase<Impl>::asImpl;
134 return asImpl(); in find()
139 return T(asImpl().readUInt32()); in readEnum()
144 Impl &readObject() { return asImpl(); } in readObject()
150 uint32_t size = asImpl().readUInt32(); in readArray()
154 buffer.push_back(ReadDispatcher<T>::read(asImpl())); in readArray()
162 ReadDispatcher<T>::read(asImpl(), std::forward<Args>(args)...)); in readOptional()
166 bool isUnsigned = asImpl().readBool(); in readAPSInt()
167 llvm::APInt value = asImpl().readAPInt(); in readAPSInt()
172 unsigned bitWidth = asImpl().readUInt32(); in readAPInt()
[all …]
/external/llvm-project/clang/lib/Sema/
DUsedDeclVisitor.h30 Derived &asImpl() { return *static_cast<Derived *>(this); } in asImpl() function
35 asImpl().visitUsedDecl(E->getLocation(), D); in VisitDeclRefExpr()
42 asImpl().visitUsedDecl(E->getMemberLoc(), D); in VisitMemberExpr()
44 asImpl().Visit(E->getBase()); in VisitMemberExpr()
48 asImpl().visitUsedDecl(Node->getBeginLoc(), Node->getCapturedDecl()); in VisitCapturedStmt()
53 asImpl().visitUsedDecl( in VisitCXXBindTemporaryExpr()
56 asImpl().Visit(E->getSubExpr()); in VisitCXXBindTemporaryExpr()
61 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorNew()); in VisitCXXNewExpr()
63 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorDelete()); in VisitCXXNewExpr()
69 asImpl().visitUsedDecl(E->getBeginLoc(), E->getOperatorDelete()); in VisitCXXDeleteExpr()
[all …]
/external/clang/lib/CodeGen/
DCGObjC.cpp2587 Impl &asImpl() { return *static_cast<Impl*>(this); } in asImpl() function in __anon215c35af0a11::ARCExprEmitter
2642 result = asImpl().visit(ov->getSourceExpr()); in visitPseudoObjectExpr()
2644 RValue::get(asImpl().getValueOfResult(result))); in visitPseudoObjectExpr()
2655 result = asImpl().visit(semantic); in visitPseudoObjectExpr()
2676 return asImpl().visit(e->getSubExpr()); in visitCastExpr()
2685 Result result = asImpl().visit(e->getSubExpr()); in visitCastExpr()
2686 return asImpl().emitBitCast(result, resultType); in visitCastExpr()
2691 return asImpl().visitLValueToRValue(e->getSubExpr()); in visitCastExpr()
2693 return asImpl().visitConsumeObject(e->getSubExpr()); in visitCastExpr()
2695 return asImpl().visitExtendBlockObject(e->getSubExpr()); in visitCastExpr()
[all …]
/external/llvm-project/clang/include/clang/CodeGen/
DConstantInitBuilder.h359 Impl &asImpl() { return *static_cast<Impl*>(this); } in asImpl() function
381 parent.add(asImpl().finishImpl()); in finishAndAddTo()
390 return this->Builder.createGlobal(asImpl().finishImpl(), in finishAndCreateGlobal()
399 return this->Builder.setGlobalInitializer(global, asImpl().finishImpl()); in finishAndSetAsInitializer()
412 return this->Builder.createFuture(asImpl().finishImpl()); in finishAndCreateFuture()
/external/llvm-project/clang/lib/CodeGen/
DCGObjC.cpp3019 Impl &asImpl() { return *static_cast<Impl*>(this); } in asImpl() function in __anone018c35d0a11::ARCExprEmitter
3075 result = asImpl().visit(ov->getSourceExpr()); in visitPseudoObjectExpr()
3077 RValue::get(asImpl().getValueOfResult(result))); in visitPseudoObjectExpr()
3088 result = asImpl().visit(semantic); in visitPseudoObjectExpr()
3106 return asImpl().visitExpr(e); in visitBlockExpr()
3115 return asImpl().visit(e->getSubExpr()); in visitCastExpr()
3124 Result result = asImpl().visit(e->getSubExpr()); in visitCastExpr()
3125 return asImpl().emitBitCast(result, resultType); in visitCastExpr()
3130 return asImpl().visitLValueToRValue(e->getSubExpr()); in visitCastExpr()
3132 return asImpl().visitConsumeObject(e->getSubExpr()); in visitCastExpr()
[all …]
/external/llvm-project/clang/lib/Serialization/
DASTReader.cpp8958 auto Kind = static_cast<APValue::ValueKind>(asImpl().readUInt32()); in readAPValue()
8965 return APValue(asImpl().readAPSInt()); in readAPValue()
8968 static_cast<llvm::APFloatBase::Semantics>(asImpl().readUInt32())); in readAPValue()
8969 return APValue(asImpl().readAPFloat(FloatSema)); in readAPValue()
8976 llvm::APSInt First = asImpl().readAPSInt(); in readAPValue()
8977 return APValue(std::move(First), asImpl().readAPSInt()); in readAPValue()
8981 static_cast<llvm::APFloatBase::Semantics>(asImpl().readUInt32())); in readAPValue()
8983 return APValue(std::move(First), asImpl().readAPFloat(FloatSema)); in readAPValue()
8988 unsigned Length = asImpl().readUInt32(); in readAPValue()
8991 Result.getVectorElt(LoopIdx) = asImpl().readAPValue(); in readAPValue()
[all …]