Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 2898) sorted by relevance

12345678910>>...116

/external/llvm/unittests/IR/
DTypeBuilderTest.cpp19 LLVMContext Context; in TEST() local
20 EXPECT_EQ(Type::getVoidTy(Context), (TypeBuilder<void, true>::get(Context))); in TEST()
21 EXPECT_EQ(Type::getVoidTy(Context), (TypeBuilder<void, false>::get(Context))); in TEST()
23 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
24 (TypeBuilder<void *, false>::get(Context))); in TEST()
25 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
26 (TypeBuilder<const void *, false>::get(Context))); in TEST()
27 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
28 (TypeBuilder<volatile void *, false>::get(Context))); in TEST()
29 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
[all …]
DDebugTypeODRUniquingTest.cpp18 LLVMContext Context; in TEST() local
19 EXPECT_FALSE(Context.isODRUniquingDebugTypes()); in TEST()
20 Context.enableDebugTypeODRUniquing(); in TEST()
21 EXPECT_TRUE(Context.isODRUniquingDebugTypes()); in TEST()
22 Context.disableDebugTypeODRUniquing(); in TEST()
23 EXPECT_FALSE(Context.isODRUniquingDebugTypes()); in TEST()
27 LLVMContext Context; in TEST() local
28 MDString &UUID = *MDString::get(Context, "string"); in TEST()
32 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST()
36 Context.enableDebugTypeODRUniquing(); in TEST()
[all …]
DMetadataTest.cpp29 LLVMContext Context; in TEST() local
30 ContextAndReplaceableUses CRU(Context); in TEST()
31 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
37 LLVMContext Context; in TEST() local
38 ContextAndReplaceableUses CRU(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
39 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
45 LLVMContext Context; in TEST() local
46 ContextAndReplaceableUses CRU(Context); in TEST()
47 CRU.makeReplaceable(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
48 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
[all …]
DConstantsTest.cpp25 LLVMContext Context; in TEST() local
26 IntegerType *Int1 = IntegerType::get(Context, 1); in TEST()
107 LLVMContext Context; in TEST() local
108 IntegerType *Int8Ty = Type::getInt8Ty(Context); in TEST()
121 LLVMContext Context; in TEST() local
122 Type *FP128Ty = Type::getFP128Ty(Context); in TEST()
124 IntegerType *Int128Ty = Type::getIntNTy(Context, 128); in TEST()
192 LLVMContext Context; in TEST() local
193 std::unique_ptr<Module> M(new Module("MyModule", Context)); in TEST()
195 Type *Int64Ty = Type::getInt64Ty(Context); in TEST()
[all …]
/external/swiftshader/src/Renderer/
DContext.cpp47 Context::Context() in Context() function in sw::Context
52 Context::~Context() in ~Context()
56 void *Context::operator new(size_t bytes) in operator new()
61 void Context::operator delete(void *pointer, size_t bytes) in operator delete()
66 bool Context::isDrawPoint(bool fillModeAware) const in isDrawPoint()
110 bool Context::isDrawLine(bool fillModeAware) const in isDrawLine()
154 bool Context::isDrawTriangle(bool fillModeAware) const in isDrawTriangle()
199 void Context::init() in init()
319 const float &Context::exp2Bias() in exp2Bias()
324 const Point &Context::getLightPosition(int light) in getLightPosition()
[all …]
/external/v8/src/
Dcontexts-inl.h34 Handle<Context> ScriptContextTable::GetContext(Handle<ScriptContextTable> table, in GetContext()
37 return Handle<Context>::cast( in GetContext()
43 Context* Context::cast(Object* context) { in cast()
45 return reinterpret_cast<Context*>(context); in cast()
49 JSFunction* Context::closure() { return JSFunction::cast(get(CLOSURE_INDEX)); } in closure()
50 void Context::set_closure(JSFunction* closure) { set(CLOSURE_INDEX, closure); } in set_closure()
53 Context* Context::previous() { in previous()
56 return reinterpret_cast<Context*>(result); in previous()
58 void Context::set_previous(Context* context) { set(PREVIOUS_INDEX, context); } in set_previous()
60 Object* Context::next_context_link() { return get(Context::NEXT_CONTEXT_LINK); } in next_context_link()
[all …]
/external/llvm/lib/IR/
DValueTypes.cpp23 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedTypeToInteger() local
24 return getIntegerVT(Context, getSizeInBits()); in changeExtendedTypeToInteger()
28 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
29 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); in changeExtendedVectorElementTypeToInteger()
30 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger()
33 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
35 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
40 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT() argument
43 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
204 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
[all …]
DMDBuilder.cpp21 return MDString::get(Context, Str); in createString()
33 createConstant(ConstantFP::get(Type::getFloatTy(Context), Accuracy)); in createFPMath()
34 return MDNode::get(Context, Op); in createFPMath()
48 Type *Int32Ty = Type::getInt32Ty(Context); in createBranchWeights()
52 return MDNode::get(Context, Vals); in createBranchWeights()
56 return MDNode::get(Context, None); in createUnpredictable()
60 Type *Int64Ty = Type::getInt64Ty(Context); in createFunctionEntryCount()
61 return MDNode::get(Context, in createFunctionEntryCount()
69 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange()
79 return MDNode::get(Context, {createConstant(Lo), createConstant(Hi)}); in createRange()
[all …]
DProfileSummary.cpp29 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD() argument
31 Type *Int64Ty = Type::getInt64Ty(Context); in getKeyValMD()
32 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyValMD()
34 return MDTuple::get(Context, Ops); in getKeyValMD()
39 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD() argument
41 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)}; in getKeyValMD()
42 return MDTuple::get(Context, Ops); in getKeyValMD()
50 Metadata *ProfileSummary::getDetailedSummaryMD(LLVMContext &Context) { in getDetailedSummaryMD() argument
52 Type *Int32Ty = Type::getInt32Ty(Context); in getDetailedSummaryMD()
53 Type *Int64Ty = Type::getInt64Ty(Context); in getDetailedSummaryMD()
[all …]
/external/clang/unittests/Tooling/
DFixItTest.cpp24 OnCall(Expr, Context); in VisitCallExpr()
28 std::function<void(CallExpr *, ASTContext *Context)> OnCall;
31 std::string LocationToString(SourceLocation Loc, ASTContext *Context) { in LocationToString() argument
32 return Loc.printToString(Context->getSourceManager()); in LocationToString()
38 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
39 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
40 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
44 EXPECT_EQ("x", getText(*P0, *Context)); in TEST()
45 EXPECT_EQ("y", getText(*P1, *Context)); in TEST()
49 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
[all …]
DRewriterTest.cpp19 RewriterTestContext Context; in TEST() local
20 FileID ID = Context.createOnDiskFile("t.cpp", "line1\nline2\nline3\nline4"); in TEST()
21 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST()
22 EXPECT_FALSE(Context.Rewrite.overwriteChangedFiles()); in TEST()
24 Context.getFileContentFromDisk("t.cpp")); in TEST()
28 RewriterTestContext Context; in TEST() local
29 FileID FailingID = Context.createInMemoryFile("invalid/failing.cpp", "test"); in TEST()
30 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST()
31 FileID WorkingID = Context.createOnDiskFile( in TEST()
33 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST()
[all …]
DRefactoringTest.cpp39 return Replacement(Context.Sources, Start, Length, ReplacementText); in createReplacement()
42 RewriterTestContext Context; member in clang::tooling::ReplacementTest
46 FileID ID = Context.createInMemoryFile("input.cpp", "text"); in TEST_F()
47 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F()
49 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
50 EXPECT_EQ("", Context.getRewrittenText(ID)); in TEST_F()
54 FileID ID = Context.createInMemoryFile("input.cpp", "line1\nline2\nline3"); in TEST_F()
55 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F()
57 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
58 EXPECT_EQ("", Context.getRewrittenText(ID)); in TEST_F()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceInstrumentation.cpp36 LoweringContext Context; in instrumentFunc() local
37 Context.init(Func->getNodes().front()); in instrumentFunc()
39 Context.init(Node); in instrumentFunc()
40 while (!Context.atEnd()) { in instrumentFunc()
42 instrumentFuncStart(Context); in instrumentFunc()
45 instrumentInst(Context); in instrumentFunc()
47 Context.advanceCur(); in instrumentFunc()
48 Context.advanceNext(); in instrumentFunc()
59 void Instrumentation::instrumentInst(LoweringContext &Context) { in instrumentInst() argument
60 assert(!Context.atEnd()); in instrumentInst()
[all …]
DIceTargetLoweringMIPS32.h167 Context.insert<InstMIPS32Add>(Dest, Src0, Src1); in _add()
171 Context.insert<InstMIPS32Addu>(Dest, Src0, Src1); in _addu()
175 Context.insert<InstMIPS32And>(Dest, Src0, Src1); in _and()
179 Context.insert<InstMIPS32Andi>(Dest, Src, Imm); in _andi()
182 void _br(CfgNode *Target) { Context.insert<InstMIPS32Br>(Target); } in _br()
185 Context.insert<InstMIPS32Br>(Target, Label); in _br()
190 Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Src1, in _br()
196 Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Condition); in _br()
202 Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Src1, Label, in _br()
207 Context.insert<InstMIPS32Ret>(RA, Src0);
[all …]
DIceTargetLoweringARM32.h336 Context.insert<InstARM32Add>(Dest, Src0, Src1, Pred);
341 Context.insert<InstARM32Add>(Dest, Src0, Src1, Pred, SetFlags);
343 Context.insert<InstFakeUse>(Dest);
348 Context.insert<InstARM32Adc>(Dest, Src0, Src1, Pred);
352 Context.insert<InstARM32And>(Dest, Src0, Src1, Pred);
356 Context.insert<InstARM32Asr>(Dest, Src0, Src1, Pred);
360 Context.insert<InstARM32Bic>(Dest, Src0, Src1, Pred);
364 Context.insert<InstARM32Br>(TargetTrue, TargetFalse, Condition); in _br()
366 void _br(CfgNode *Target) { Context.insert<InstARM32Br>(Target); } in _br()
368 Context.insert<InstARM32Br>(Target, Condition); in _br()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DValueTypes.cpp23 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
24 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); in changeExtendedVectorElementTypeToInteger()
25 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger()
28 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
35 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT() argument
38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
149 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
154 case MVT::isVoid: return Type::getVoidTy(Context); in getTypeForEVT()
155 case MVT::i1: return Type::getInt1Ty(Context); in getTypeForEVT()
[all …]
/external/llvm/include/llvm/IR/
DTypeBuilder.h114 static PointerType *get(LLVMContext &Context) { in get() argument
115 return PointerType::getUnqual(TypeBuilder<T,cross>::get(Context)); in get()
125 static ArrayType *get(LLVMContext &Context) { in get() argument
126 return ArrayType::get(TypeBuilder<T, cross>::get(Context), N); in get()
132 static ArrayType *get(LLVMContext &Context) { in get() argument
133 return ArrayType::get(TypeBuilder<T, cross>::get(Context), 0); in get()
162 static IntegerType *get(LLVMContext &Context) { \
163 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
257 static FunctionType *get(LLVMContext &Context) { in get() argument
258 return FunctionType::get(TypeBuilder<R, cross>::get(Context), false); in get()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DTypeBuilder.h106 static PointerType *get(LLVMContext &Context) { in get() argument
107 return PointerType::getUnqual(TypeBuilder<T,cross>::get(Context)); in get()
117 static ArrayType *get(LLVMContext &Context) { in get() argument
118 return ArrayType::get(TypeBuilder<T, cross>::get(Context), N); in get()
124 static ArrayType *get(LLVMContext &Context) { in get() argument
125 return ArrayType::get(TypeBuilder<T, cross>::get(Context), 0); in get()
154 static IntegerType *get(LLVMContext &Context) { \
155 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
249 static FunctionType *get(LLVMContext &Context) { in get() argument
250 return FunctionType::get(TypeBuilder<R, cross>::get(Context), false); in get()
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DSharedPrefUtil.java31 import android.content.Context;
41 public static boolean isInitDone(Context context) { in isInitDone()
43 EAB_SHARED_PREF, Context.MODE_PRIVATE); in isInitDone()
47 public static void setInitDone(Context context, boolean initDone){ in setInitDone()
49 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in setInitDone()
53 public static long getLastContactChangedTimestamp(Context context, long time) { in getLastContactChangedTimestamp()
56 Context.MODE_PRIVATE); in getLastContactChangedTimestamp()
61 public static void saveLastContactChangedTimestamp(Context context, long time) { in saveLastContactChangedTimestamp()
63 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in saveLastContactChangedTimestamp()
67 public static long getLastProfileContactChangedTimestamp(Context context, long time) { in getLastProfileContactChangedTimestamp()
[all …]
/external/swiftshader/src/OpenGL/libGLES_CM/
DContext.cpp40 Context::Context(egl::Display *const display, const Context *shareContext, const egl::Config *confi… in Context() function in es1::Context
41 : egl::Context(display), config(config), in Context()
47 sw::Context *context = new sw::Context(); in Context()
250 Context::~Context() in ~Context()
284 void Context::makeCurrent(gl::Surface *surface) in makeCurrent()
324 EGLint Context::getClientVersion() const in getClientVersion()
329 EGLint Context::getConfigID() const in getConfigID()
335 void Context::markAllStateDirty() in markAllStateDirty()
347 void Context::setClearColor(float red, float green, float blue, float alpha) in setClearColor()
355 void Context::setClearDepth(float depth) in setClearDepth()
[all …]
/external/swiftshader/src/OpenGL/libGLESv2/
DContext.cpp48 Context::Context(egl::Display *display, const Context *shareContext, EGLint clientVersion, const eg… in Context() function in es2::Context
49 : egl::Context(display), clientVersion(clientVersion), config(config) in Context()
51 sw::Context *context = new sw::Context(); in Context()
188 Context::~Context() in ~Context()
274 void Context::makeCurrent(gl::Surface *surface) in makeCurrent()
324 EGLint Context::getClientVersion() const in getClientVersion()
329 EGLint Context::getConfigID() const in getConfigID()
335 void Context::markAllStateDirty() in markAllStateDirty()
349 void Context::setClearColor(float red, float green, float blue, float alpha) in setClearColor()
357 void Context::setClearDepth(float depth) in setClearDepth()
[all …]
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp67 ASTContext *Context; member in __anon80afeaa00111::RewriteModernObjC
267 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
284 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
295 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
305 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
509 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
525 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
526 : Context->getObjCIdType(); in convertToUnqualifiedObjCType()
529 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
536 T = Context->getPointerType(T); in convertToUnqualifiedObjCType()
[all …]
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DMetadataTest.cpp25 LLVMContext Context; member in __anon13c245f50111::MetadataTest
33 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
35 MDString *s2 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
45 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
46 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); in TEST_F()
54 MDString *s = MDString::get(Context, StringRef(str, 13)); in TEST_F()
67 MDString *s = MDString::get(Context, StringRef(str+0, 5)); in TEST_F()
81 MDString *s1 = MDString::get(Context, StringRef(&x[0], 3)); in TEST_F()
82 MDString *s2 = MDString::get(Context, StringRef(&y[0], 3)); in TEST_F()
90 MDNode *n1 = MDNode::get(Context, V); in TEST_F()
[all …]
/external/swiftshader/src/OpenGL/libGL/
DContext.cpp45 Context::Context(const Context *shareContext) in Context() function in gl::Context
49 sw::Context *context = new sw::Context(); in Context()
204 Context::~Context() in ~Context()
264 void Context::makeCurrent(Surface *surface) in makeCurrent()
308 void Context::markAllStateDirty() in markAllStateDirty()
323 void Context::setClearColor(float red, float green, float blue, float alpha) in setClearColor()
331 void Context::setClearDepth(float depth) in setClearDepth()
336 void Context::setClearStencil(int stencil) in setClearStencil()
341 void Context::setCullFaceEnabled(bool enabled) in setCullFaceEnabled()
346 bool Context::isCullFaceEnabled() const in isCullFaceEnabled()
[all …]
/external/clang/lib/Sema/
DSema.cpp52 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context, in getPrintingPolicy() argument
54 PrintingPolicy Policy = Context.getPrintingPolicy(); in getPrintingPolicy()
57 Policy.Bool = Context.getLangOpts().Bool; in getPrintingPolicy()
59 if (const MacroInfo *BoolMacro = PP.getMacroInfo(Context.getBoolName())) { in getPrintingPolicy()
71 PushDeclContext(S, Context.getTranslationUnitDecl()); in ActOnTranslationUnitScope()
79 LangOpts(pp.getLangOpts()), PP(pp), Context(ctxt), Consumer(consumer), in Sema()
119 NSAPIObj.reset(new NSAPI(Context));
125 Diags.SetArgToStringFn(&FormatASTNodeDiagnosticArgument, &Context);
137 DeclarationName DN = &Context.Idents.get(Name); in addImplicitTypedef()
139 PushOnScopeChains(Context.buildImplicitTypedef(T, Name), TUScope); in addImplicitTypedef()
[all …]

12345678910>>...116