Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/test/Analysis/inlining/
H A Dpath-notes.cpp19 static int *globalPtr; variable
24 Foo f(globalPtr); in ~Bar()
32 globalPtr = 0; in test()
63 …*globalPtr = 1; // expected-warning {{Dereference of null pointer (loaded from variable 'globalPtr… in Dereferencer()
68 …*globalPtr = 1; // expected-warning {{Dereference of null pointer (loaded from variable 'globalPtr… in Dereferencer()
110 globalPtr = 0; in testDefaultConstruction()
118 globalPtr = 0; in testCopyConstruction()
126 globalPtr = 0; in testMoveConstruction()
134 globalPtr = 0; in testCopyAssignment()
143 globalPtr = 0; in testMoveAssignment()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A DMalloc+MismatchedDeallocator+NewDelete.cpp79 static int *globalPtr; variable
96 globalPtr = p; in testShouldReportDoubleFreeNotMismatched()
98 delete globalPtr; // expected-warning {{Attempt to free released memory}} in testShouldReportDoubleFreeNotMismatched()
105 globalPtr = arr; in testMismatchedChangePointeeThroughAssignment()
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/
H A DMCJITTest.cpp52 void *globalPtr = TheJIT->getPointerToGlobal(Global); in TEST_F() local
53 EXPECT_TRUE(nullptr != globalPtr) in TEST_F()
56 EXPECT_EQ(initialValue, *(int32_t*)globalPtr) in TEST_F()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DGPUOpsLowering.cpp228 Value globalPtr = rewriter.create<LLVM::AddressOfOp>(loc, global); in matchAndRewrite() local
232 loc, i8Ptr, globalPtr, mlir::ValueRange({zero, zero})); in matchAndRewrite()
327 Value globalPtr = rewriter.create<LLVM::AddressOfOp>(loc, global); in matchAndRewrite() local
331 loc, i8Ptr, globalPtr, mlir::ValueRange({zero, zero})); in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DLowerToLLVM.cpp156 Value globalPtr = builder.create<LLVM::AddressOfOp>(loc, global); in getOrCreateGlobalString() local
163 globalPtr, ArrayRef<Value>({cst0, cst0})); in getOrCreateGlobalString()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DLowerToLLVM.cpp156 Value globalPtr = builder.create<LLVM::AddressOfOp>(loc, global); in getOrCreateGlobalString() local
163 globalPtr, ArrayRef<Value>({cst0, cst0})); in getOrCreateGlobalString()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp2936 Value globalPtr = builder.create<LLVM::AddressOfOp>(loc, global); in createGlobalString() local
2941 loc, LLVM::LLVMPointerType::get(IntegerType::get(ctx, 8)), globalPtr, in createGlobalString()