add NVPTX for LLVM 3.2;
auto-gen _intrinsic_ids.py in setup.py;
This commit is contained in:
parent
505d280fe0
commit
d1bcdd05d1
9 changed files with 99 additions and 1961 deletions
21
llvm/core.py
21
llvm/core.py
|
|
@ -2155,8 +2155,19 @@ if _core.LLVMInitializeNativeTargetAsmPrinter():
|
|||
# should user trigger the initialization?
|
||||
raise llvm.LLVMException("No native asm printer!?")
|
||||
|
||||
if True: # use PTX
|
||||
_core.LLVMInitializePTXTarget()
|
||||
_core.LLVMInitializePTXTargetInfo()
|
||||
_core.LLVMInitializePTXTargetMC()
|
||||
_core.LLVMInitializePTXAsmPrinter()
|
||||
|
||||
HAS_PTX = HAS_NVPTX = False
|
||||
if True: # use PTX?
|
||||
try:
|
||||
_core.LLVMInitializePTXTarget()
|
||||
_core.LLVMInitializePTXTargetInfo()
|
||||
_core.LLVMInitializePTXTargetMC()
|
||||
_core.LLVMInitializePTXAsmPrinter()
|
||||
HAS_PTX = True
|
||||
except AttributeError:
|
||||
_core.LLVMInitializeNVPTXTarget()
|
||||
_core.LLVMInitializeNVPTXTargetInfo()
|
||||
_core.LLVMInitializeNVPTXTargetMC()
|
||||
_core.LLVMInitializeNVPTXAsmPrinter()
|
||||
HAS_NVPTX = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue