Displaying 2 results from an estimated 2 matches for "asmargs".
Did you mean:
addargs
2008 Apr 18
0
[LLVMdev] Giving labels to intrinsics and getting the address
...inline asm. Where I want the x86 instruction to be "0x0f,
0x36, 0x00" and label address put into register a.
// Get the label from instrinsic's arguments..
BasicBlock* theLabel = ...magic?...
// Create a function type that takes a label and returns void
std::vector<const Type*>asmArgs;
asmArgs.push_back(Type::LabelTy);
FunctionType* asmFuncTy = FunctionType::get(Type::VoidTy, asmArgs, false);
// Create inline asm that emits the desired opcode and prepares register a
InlineAsm* asm = InlineAsm::get(asmFuncTy, ".byte 0x0f, 0x36, 0x00",
"{ax},~{dirflag},~{fpsr},~{fl...
2013 Apr 21
3
[LLVMdev] trying to generate a simple inline asm
I'm trying to just emit simple inline assembler (no constraints, inputs,
etc.)
Can anyone point me to an example of this..?
This is corresponding to:
__asm__ ("mfc1 $4,$f12");
This is what I tried but it's not correct.
std::vector<llvm::Type *> AsmArgTypes;
llvm::FunctionType *AsmFTy =
llvm::FunctionType::get(Type::getVoidTy(FStub->getContext()),