/external/llvm/lib/CodeGen/ |
D | PreISelIntrinsicLowering.cpp | 34 Type *Int8Ty = Type::getInt8Ty(F.getContext()); in lowerLoadRelative() local 44 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative() 48 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative()
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerTypeTests.cpp | 219 IntegerType *Int8Ty; member 313 *M, Int8Ty, /*isConstant=*/true, GlobalValue::PrivateLinkage, nullptr); in createByteArray() 315 *M, Int8Ty, /*isConstant=*/true, GlobalValue::PrivateLinkage, nullptr); in createByteArray() 323 BAI->Mask = ConstantExpr::getPtrToInt(MaskGlobal, Int8Ty); in createByteArray() 342 BAI->Mask->replaceAllUsesWith(ConstantInt::get(Int8Ty, Mask)); in allocateByteArrays() 366 Int8Ty, 0, GlobalValue::PrivateLinkage, "bits", GEP, M); in allocateByteArrays() 417 return B.CreateICmpNE(ByteAndMask, ConstantInt::get(Int8Ty, 0)); in createBitSetTest() 514 ConstantAggregateZero::get(ArrayType::get(Int8Ty, Padding))); in buildBitSetsFromGlobalVariables() 634 ConstantInt *Jmp = ConstantInt::get(Int8Ty, kJmpPCRel32Code); in createJumpTableEntry() 646 ConstantInt *Int3 = ConstantInt::get(Int8Ty, kInt3Code); in createJumpTableEntry() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | InstrOrderFile.cpp | 121 IntegerType *Int8Ty = Type::getInt8Ty(Ctx); in generateCodeSequence() local 138 LoadInst *loadBitMap = entryB.CreateLoad(Int8Ty, MapAddr, ""); in generateCodeSequence() 139 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence() 141 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence()
|
D | HWAddressSanitizer.cpp | 278 Type *Int8Ty; member in __anon6d1aa7c60111::HWAddressSanitizer 420 Type *Int8Arr0Ty = ArrayType::get(Int8Ty, 0); in createHwasanCtorComdat() 488 Int8Ty = IRB.getInt8Ty(); in initializeModule() 569 "__hwasan_tag_memory", IRB.getVoidTy(), Int8PtrTy, Int8Ty, IntptrTy); in initializeCallbacks() 571 M.getOrInsertFunction("__hwasan_generate_tag", Int8Ty); in initializeCallbacks() 718 return IRB.CreateGEP(Int8Ty, ShadowBase, Shadow); in memToShadow() 749 Value *MemTag = IRB.CreateLoad(Int8Ty, Shadow); in instrumentMemAccessInline() 764 IRB.CreateICmpUGT(MemTag, ConstantInt::get(Int8Ty, 15)); in instrumentMemAccessInline() 770 Value *PtrLowBits = IRB.CreateTrunc(IRB.CreateAnd(PtrLong, 15), Int8Ty); in instrumentMemAccessInline() 772 PtrLowBits, ConstantInt::get(Int8Ty, (1 << AccessSizeIndex) - 1)); in instrumentMemAccessInline() [all …]
|
D | SanitizerCoverage.cpp | 244 *Int16Ty, *Int8Ty, *Int8PtrTy, *Int1Ty, *Int1PtrTy; member in __anon112dc5cd0111::ModuleSanitizerCoverage 346 auto GEP = IRB.CreateGEP(Int8Ty, SecStartI8Ptr, in CreateSecStartEnd() 413 Int8Ty = IRB.getInt8Ty(); in instrumentModule() 439 SanCovTraceConstCmp1, SanCovTraceCmpZeroExtAL, VoidTy, Int8Ty, Int8Ty); in instrumentModule() 729 AllBlocks.size(), F, Int8Ty, SanCovCountersSectionName); in CreateFunctionLocalArrays() 912 auto Load = IRB.CreateLoad(Int8Ty, CounterPtr); in InjectCoverageAtBlock() 913 auto Inc = IRB.CreateAdd(Load, ConstantInt::get(Int8Ty, 1)); in InjectCoverageAtBlock()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | InstrOrderFile.cpp | 122 IntegerType *Int8Ty = Type::getInt8Ty(Ctx); in generateCodeSequence() local 139 LoadInst *loadBitMap = entryB.CreateLoad(Int8Ty, MapAddr, ""); in generateCodeSequence() 140 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence() 142 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence()
|
D | HWAddressSanitizer.cpp | 272 Type *Int8Ty; member in __anon79f8a7ba0111::HWAddressSanitizer 375 Int8Ty = IRB.getInt8Ty(); in initializeModule() 455 "__hwasan_tag_memory", IRB.getVoidTy(), Int8PtrTy, Int8Ty, IntptrTy); in initializeCallbacks() 457 M.getOrInsertFunction("__hwasan_generate_tag", Int8Ty); in initializeCallbacks() 604 return IRB.CreateGEP(Int8Ty, shadowBase(), Shadow); in memToShadow() 630 Value *MemTag = IRB.CreateLoad(Int8Ty, Shadow); in instrumentMemAccessInline() 647 IRB.CreateICmpUGT(MemTag, ConstantInt::get(Int8Ty, 15)); in instrumentMemAccessInline() 653 Value *PtrLowBits = IRB.CreateTrunc(IRB.CreateAnd(PtrLong, 15), Int8Ty); in instrumentMemAccessInline() 655 PtrLowBits, ConstantInt::get(Int8Ty, (1 << AccessSizeIndex) - 1)); in instrumentMemAccessInline() 664 Value *InlineTag = IRB.CreateLoad(Int8Ty, InlineTagAddr); in instrumentMemAccessInline() [all …]
|
D | SanitizerCoverage.cpp | 238 *Int16Ty, *Int8Ty, *Int8PtrTy; member in __anon119197410111::ModuleSanitizerCoverage 322 auto GEP = IRB.CreateGEP(Int8Ty, SecStartI8Ptr, in CreateSecStartEnd() 381 Int8Ty = IRB.getInt8Ty(); in instrumentModule() 408 SanCovTraceConstCmp1, SanCovTraceCmpZeroExtAL, VoidTy, Int8Ty, Int8Ty); in instrumentModule() 703 AllBlocks.size(), F, Int8Ty, SanCovCountersSectionName); in CreateFunctionLocalArrays() 883 auto Load = IRB.CreateLoad(Int8Ty, CounterPtr); in InjectCoverageAtBlock() 884 auto Inc = IRB.CreateAdd(Load, ConstantInt::get(Int8Ty, 1)); in InjectCoverageAtBlock()
|
/external/llvm-project/llvm/unittests/FuzzMutate/ |
D | OperationsTest.cpp | 245 Type *Int8Ty = Type::getInt8Ty(Ctx); in TEST() local 261 auto *PHI1 = PHINode::Create(Int8Ty, /*NumReservedValues=*/2, "p1", BB3); in TEST() 262 PHI1->addIncoming(ConstantInt::get(Int8Ty, 0), BB1); in TEST() 263 PHI1->addIncoming(ConstantInt::get(Int8Ty, 1), BB2); in TEST() 264 auto *PHI2 = PHINode::Create(Int8Ty, /*NumReservedValues=*/2, "p2", BB3); in TEST() 265 PHI2->addIncoming(ConstantInt::get(Int8Ty, 1), BB1); in TEST() 266 PHI2->addIncoming(ConstantInt::get(Int8Ty, 0), BB2); in TEST()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | PreISelIntrinsicLowering.cpp | 37 Type *Int8Ty = Type::getInt8Ty(F.getContext()); in lowerLoadRelative() local 47 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative() 51 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative()
|
D | SafeStack.cpp | 134 Type *Int8Ty; member in __anon3a3d6bf40111::SafeStack 213 Int8Ty(Type::getInt8Ty(F.getContext())) {} in SafeStack() 554 Value *Off = IRB.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 573 Value *Off = IRB.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 609 Value *Off = IRBUser.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 633 IRB.CreateGEP(Int8Ty, BasePointer, ConstantInt::get(Int32Ty, -FrameSize), in moveStaticAllocasToUnsafeStack()
|
/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 108 IntegerType *Int8Ty = Type::getInt8Ty(Context); in TEST() local 109 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST() 110 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST() 111 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST() 112 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST() 113 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST() 114 EXPECT_EQ(206U, ConstantInt::getSigned(Int8Ty, -50)->getZExtValue()); in TEST() 117 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue()); in TEST()
|
D | ValueTest.cpp | 50 Type *Int8Ty = Type::getInt8Ty(Ctx); in TEST() local 87 Constant *DummyCast1 = M->getOrInsertGlobal("dummy_cast", Int8Ty); in TEST()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | PreISelIntrinsicLowering.cpp | 37 Type *Int8Ty = Type::getInt8Ty(F.getContext()); in lowerLoadRelative() local 47 B.CreateGEP(Int8Ty, CI->getArgOperand(0), CI->getArgOperand(1)); in lowerLoadRelative() 51 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative()
|
D | SafeStack.cpp | 138 Type *Int8Ty; member in __anonb64362000111::SafeStack 215 Int8Ty(Type::getInt8Ty(F.getContext())) {} in SafeStack() 569 Value *Off = IRB.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 588 Value *Off = IRB.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 623 Value *Off = IRBUser.CreateGEP(Int8Ty, BasePointer, // BasePointer is i8* in moveStaticAllocasToUnsafeStack() 647 IRB.CreateGEP(Int8Ty, BasePointer, ConstantInt::get(Int32Ty, -FrameSize), in moveStaticAllocasToUnsafeStack()
|
/external/llvm-project/llvm/unittests/IR/ |
D | VectorTypesTest.cpp | 35 Type *Int8Ty = Type::getInt8Ty(Ctx); in TEST() local 41 auto *V16Int8Ty = FixedVectorType::get(Int8Ty, 16); in TEST() 53 dyn_cast<FixedVectorType>(VectorType::get(Int8Ty, V8Int32Ty)); in TEST() 129 Type *Int8Ty = Type::getInt8Ty(Ctx); in TEST() local 135 auto *ScV16Int8Ty = ScalableVectorType::get(Int8Ty, 16); in TEST() 147 dyn_cast<ScalableVectorType>(VectorType::get(Int8Ty, ScV8Int32Ty)); in TEST()
|
D | ConstantsTest.cpp | 107 IntegerType *Int8Ty = Type::getInt8Ty(Context); in TEST() local 108 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue()); in TEST() 109 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue()); in TEST() 110 EXPECT_EQ(100, ConstantInt::getSigned(Int8Ty, 100)->getSExtValue()); in TEST() 111 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue()); in TEST() 112 EXPECT_EQ(-50, ConstantInt::getSigned(Int8Ty, -50)->getSExtValue()); in TEST() 113 EXPECT_EQ(206U, ConstantInt::getSigned(Int8Ty, -50)->getZExtValue()); in TEST() 116 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue()); in TEST() 646 Type *Int8Ty = Type::getInt8Ty(Context); in TEST() local 653 for (auto *Ty : {FloatTy, Int32Ty, Int8Ty}) { in TEST()
|
D | ValueTest.cpp | 49 Type *Int8Ty = Type::getInt8Ty(Ctx); in TEST() local 86 Constant *DummyCast1 = M->getOrInsertGlobal("dummy_cast", Int8Ty); in TEST()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroEarly.cpp | 68 Type *Int8Ty = Builder.getInt8Ty(); in lowerCoroPromise() local 71 StructType::get(Context, {AnyResumeFnPtrTy, AnyResumeFnPtrTy, Int8Ty}); in lowerCoroPromise() 80 Builder.CreateConstInBoundsGEP1_32(Int8Ty, Operand, Offset); in lowerCoroPromise()
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | CoroEarly.cpp | 63 Type *Int8Ty = Builder.getInt8Ty(); in lowerCoroPromise() local 66 StructType::get(Context, {AnyResumeFnPtrTy, AnyResumeFnPtrTy, Int8Ty}); in lowerCoroPromise() 75 Builder.CreateConstInBoundsGEP1_32(Int8Ty, Operand, Offset); in lowerCoroPromise()
|
/external/clang/lib/CodeGen/ |
D | CGBuilder.h | 247 assert(Addr.getElementType() == TypeCache.Int8Ty); 253 assert(Addr.getElementType() == TypeCache.Int8Ty); 260 assert(Ptr->getType()->getPointerElementType() == TypeCache.Int8Ty); 265 assert(Ptr->getType()->getPointerElementType() == TypeCache.Int8Ty);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | LowerTypeTests.cpp | 391 IntegerType *Int8Ty = Type::getInt8Ty(M.getContext()); member in __anon033c686e0111::LowerTypeTestsModule 595 M, Int8Ty, /*isConstant=*/true, GlobalValue::PrivateLinkage, nullptr); in createByteArray() 596 auto MaskGlobal = new GlobalVariable(M, Int8Ty, /*isConstant=*/true, in createByteArray() 625 ConstantExpr::getIntToPtr(ConstantInt::get(Int8Ty, Mask), Int8PtrTy)); in allocateByteArrays() 648 Int8Ty, 0, GlobalValue::PrivateLinkage, "bits", GEP, &M); in allocateByteArrays() 675 ByteArray = GlobalAlias::create(Int8Ty, 0, GlobalValue::PrivateLinkage, in createBitSetTest() 679 Value *ByteAddr = B.CreateGEP(Int8Ty, ByteArray, BitOffset); in createBitSetTest() 680 Value *Byte = B.CreateLoad(Int8Ty, ByteAddr); in createBitSetTest() 683 B.CreateAnd(Byte, ConstantExpr::getPtrToInt(TIL.BitMask, Int8Ty)); in createBitSetTest() 684 return B.CreateICmpNE(ByteAndMask, ConstantInt::get(Int8Ty, 0)); in createBitSetTest() [all …]
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | LowerTypeTests.cpp | 394 IntegerType *Int8Ty = Type::getInt8Ty(M.getContext()); member in __anonba57d07a0111::LowerTypeTestsModule 602 M, Int8Ty, /*isConstant=*/true, GlobalValue::PrivateLinkage, nullptr); in createByteArray() 603 auto MaskGlobal = new GlobalVariable(M, Int8Ty, /*isConstant=*/true, in createByteArray() 632 ConstantExpr::getIntToPtr(ConstantInt::get(Int8Ty, Mask), Int8PtrTy)); in allocateByteArrays() 655 Int8Ty, 0, GlobalValue::PrivateLinkage, "bits", GEP, &M); in allocateByteArrays() 682 ByteArray = GlobalAlias::create(Int8Ty, 0, GlobalValue::PrivateLinkage, in createBitSetTest() 686 Value *ByteAddr = B.CreateGEP(Int8Ty, ByteArray, BitOffset); in createBitSetTest() 687 Value *Byte = B.CreateLoad(Int8Ty, ByteAddr); in createBitSetTest() 690 B.CreateAnd(Byte, ConstantExpr::getPtrToInt(TIL.BitMask, Int8Ty)); in createBitSetTest() 691 return B.CreateICmpNE(ByteAndMask, ConstantInt::get(Int8Ty, 0)); in createBitSetTest() [all …]
|
/external/llvm/examples/BrainF/ |
D | BrainF.cpp | 96 Type* Int8Ty = IntegerType::getInt8Ty(C); in header() local 97 Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty); in header() 99 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
|
/external/llvm-project/llvm/examples/BrainF/ |
D | BrainF.cpp | 94 Type* Int8Ty = IntegerType::getInt8Ty(C); in header() local 95 Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty); in header() 97 ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem, in header()
|