Open Quuxplusone opened 9 years ago
kernel.ll
cljpeg-16d5a9.cl
Created attachment 15247 .ll file Hello i compile llvm and clang with all target.build libclc also successed! but i compile .cl file to .nvptx that failed but in my simple test project, it successed! besides: in the dir, there are output file, but is not completely! Thanks env: win7 64bit llvm 3.7 final libclc master i do not know what wrong? so give me some idea. commond: llc -mcpu=sm_21 kernel.ll -o k.nvptx below is error message: 0x0019A091 (0x00000000 0x038BA200 0x001982D7 0x00000001), llvm::PointerIntPair<llvm::Instruction const *,1,bool,llvm::PointerLikeTypeTraits<llvm::Instruction const *> >::getPointer() + 0x11 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\include\llvm\adt\pointerintpair.h, line 76 + 0x3 byte(s) 0x00198736 (0x00000001 0x00000000 0x038BA20C 0x001982A6), llvm::CallSiteBase<llvm::Function const ,llvm::BasicBlock const ,llvm::Value const ,llvm::User const ,llvm::Instruction const ,llvm::CallInst const ,llvm::InvokeInst const ,llvm::Use const *>::getInstruction() + 0x16 bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\include\llvm\ir\callsite.h, line 82 + 0x16 byte(s) 0x001982D7 (0x00000000 0x038BA250 0x008A764B 0x038BB5CC), llvm::CallSiteBase<llvm::Function const ,llvm::BasicBlock const ,llvm::Value const ,llvm::User const ,llvm::Instruction const ,llvm::CallInst const ,llvm::InvokeInst const ,llvm::Use const *>::getCalledValue() + 0x17 bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\include\llvm\ir\callsite.h, line 92 + 0x8 byte(s) 0x001982A6 (0x038BB5CC 0x00000001 0xCCCCCCCC 0xCCCCCCCC), llvm::CallSiteBase<llvm::Function const ,llvm::BasicBlock const ,llvm::Value const ,llvm::User const ,llvm::Instruction const ,llvm::CallInst const ,llvm::InvokeInst const ,llvm::Use const *>::getCalledFunction() + 0x16 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\include\llvm\ir\callsite.h, line 100 + 0x8 byte(s) 0x008A764B (0x05641908 0x00000000 0x00000000 0x03909050), llvm::NVPTXTargetLowering::getArgumentAlignment() + 0x2B bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\target\nvptx\nvptxisellowering.cpp, line 1004 + 0x8 byte(s) 0x008A2C26 (0x038BB680 0x038BBB18 0x038BB7E8 0x038BC548), llvm::NVPTXTargetLowering::LowerCall() + 0x3486 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\target\nvptx\nvptxisellowering.cpp, line 1602 + 0x1A byte(s) 0x01508ADE (0x038BBB00 0x038BBB18 0x038BED08 0x0101CCCC), llvm::TargetLowering::LowerCallTo() + 0xD9E bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\selectiondagbuilder.cpp, line 6942 + 0x24 byte(s) 0x01583F7D (0x038BCB78 0x00000089 0x0564CDF8 0x00000000), `anonymous namespace'::SelectionDAGLegalize::ExpandLibCall() + 0x2DD bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\legalizedag.cpp, line 2100 0x01584786 (0x038BCB78 0x0564CDF8 0x00000089 0x0000008A), `anonymous namespace'::SelectionDAGLegalize::ExpandFPLibCall() + 0x96 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\legalizedag.cpp, line 2187 + 0x16 byte(s) 0x0158E7A2 (0x0564CDF8 0x038BF034 0x038BF4B4 0xCCCCCCCC), `anonymous namespace'::SelectionDAGLegalize::ExpandNode() + 0x2A62 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\legalizedag.cpp, line 3429 + 0x2C byte(s) 0x0157F7D6 (0x0564CDF8 0x038BF30C 0x038BF014 0x038BF02C), `anonymous namespace'::SelectionDAGLegalize::LegalizeOp() + 0xA06 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\legalizedag.cpp, line 1383 0x0157EBF1 (0x038BF4A8 0x038BF4B4 0xCCCCCCCC 0xCCCCCCCC), llvm::SelectionDAG::Legalize() + 0x111 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\legalizedag.cpp, line 4370 0x01450EAC (0x056423A8 0x00000000 0xCCCCCCCC 0x03955CC4), llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 0x78C bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\selectiondagisel.cpp, line 765 0x0144F4BF (0x0395A1B4 0x03955CC4 0x038BF3A7 0x038BF774), llvm::SelectionDAGISel::SelectBasicBlock() + 0xAF bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\selectiondagisel.cpp, line 621 0x0144F1F7 (0x0394BDAC 0x038BF808 0x038BF790 0xCCCCCCCC), llvm::SelectionDAGISel::SelectAllBasicBlocks() + 0x907 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\selectiondagisel.cpp, line 1317 0x01448F17 (0x05605CA0 0x039C0DD0 0x038BF79C 0x00E47420), llvm::SelectionDAGISel::runOnMachineFunction() + 0x2F7 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\codegen\selectiondag\selectiondagisel.cpp, line 465 0x00877F78 (0x05605CA0 0x038BF7A8 0x05605CA0 0x039C0DD0), `anonymous namespace'::NVPTXDAGToDAGISel::runOnMachineFunction() + 0x28 bytes(s), c:\users\guang\desktop\llvm\src\llvm- 3.7.0\lib\target\nvptx\nvptxiseldagtodag.cpp, line 60 0x00E47420 (0x0394BDAC 0x038BF844 0x038BF850 0x00000001), llvm::MachineFunctionPass::runOnFunction() + 0x50 bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\lib\codegen\machinefunctionpass.cpp, line 40 + 0x13 byte(s) 0x0118F665 (0x0394BDAC 0x038BF91C 0x00000000 0x0394BDAC), llvm::FPPassManager::runOnFunction() + 0x105 bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\lib\ir\legacypassmanager.cpp, line 1520 + 0x17 byte(s) 0x0118F7F6 (0x03918320 0x038BF960 0x038BF928 0x00000001), llvm::FPPassManager::runOnModule() + 0x76 bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\lib\ir\legacypassmanager.cpp, line 1540 + 0x10 byte(s) 0x0119080E (0x03918320 0x038BFE98 0x038BF97C 0x7EFDE000), `anonymous namespace'::MPPassManager::runOnModule() + 0x1CE bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\lib\ir\legacypassmanager.cpp, line 1596 + 0x17 byte(s) 0x01190ECA (0x03918320 0x038BFB78 0x038BFE98 0x00167C54), llvm::legacy::PassManagerImpl::run() + 0xFA bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\lib\ir\legacypassmanager.cpp, line 1698 + 0x1B byte(s) 0x0118B81D (0x03918320 0x038BFEE8 0x00000000 0x055B0068), llvm::legacy::PassManager::run() + 0x1D bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\lib\ir\legacypassmanager.cpp, line 1730 0x00167C54 (0x03905270 0x03901360 0x00000000 0xCCCCCCCC), compileModule() + 0x1304 bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\tools\llc\llc.cpp, line 383 0x001682DC (0x00000005 0x03905270 0x03900890 0xEB826EEE), main() + 0xEC bytes(s), c:\users\guang\desktop\llvm\src\llvm-3.7.0\tools\llc\llc.cpp, line 204 + 0xD byte(s) 0x01888739 (0x038BFF4C 0x75A333AA 0x7EFDE000 0x038BFF8C), __tmainCRTStartup() + 0x199 bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 626 + 0x19 byte(s) 0x0188887D (0x7EFDE000 0x038BFF8C 0x771A9F72 0x7EFDE000), mainCRTStartup() + 0xD bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 466 0x75A333AA (0x7EFDE000 0x757CC666 0x00000000 0x00000000), BaseThreadInitThunk() + 0x12 bytes(s) 0x771A9F72 (0x01888870 0x7EFDE000 0x00000000 0x00000000), RtlInitializeExceptionChain() + 0x63 bytes(s) 0x771A9F45 (0x01888870 0x7EFDE000 0x00000000 0x00000000), RtlInitializeExceptionChain() + 0x36 bytes(s)
Attached kernel.ll (148912 bytes, application/octet-stream): .ll file
Attached cljpeg-16d5a9.cl (1901823 bytes, application/octet-stream): source file
kernel.ll
(148912 bytes, application/octet-stream)cljpeg-16d5a9.cl
(1901823 bytes, application/octet-stream)